MATLAB Function Reference |

**Syntax**

**Description**

```
Inf
```

returns the IEEE arithmetic representation for positive infinity. Infinity results from operations like division by zero and overflow, which lead to results too large to represent as conventional floating-point values.

**Examples**

`1/0`

, `1.e1000`

, `2^1000`

, and `exp(1000)`

all produce `Inf`

.

`Inf-Inf`

and `Inf/Inf`

both produce `NaN`

(Not-a-Number).

**See Also**

ind2sub | inferiorto |