# isfinite

> Returns true if the input float is a finite floating point value, false otherwise.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.6/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## isfinite(float)

Returns true if the input float is a finite floating point value, false otherwise.

```csharp
public static bool isfinite(float x)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The float value to test.

### Returns

| Type                                                          | Description                                   |
| ------------------------------------------------------------- | --------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the float is finite, false otherwise. |

## isfinite(float2)

Returns a bool2 indicating for each component of a float2 whether it is a finite floating point value.

```csharp
public static bool2 isfinite(float2 x)
```

### Parameters

**** (\[float2]\(/engine/6000.6/script-reference/unity/mathematics/float2)): The float2 value to test.

### Returns

| Type                                                                | Description                                                                           |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [bool2](/engine/6000.6/script-reference/unity/mathematics/bool2.md) | A bool2 where it is true in a component if that component is finite, false otherwise. |

## isfinite(float3)

Returns a bool3 indicating for each component of a float3 whether it is a finite floating point value.

```csharp
public static bool3 isfinite(float3 x)
```

### Parameters

**** (\[float3]\(/engine/6000.6/script-reference/unity/mathematics/float3)): The float3 value to test.

### Returns

| Type                                                                | Description                                                                           |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [bool3](/engine/6000.6/script-reference/unity/mathematics/bool3.md) | A bool3 where it is true in a component if that component is finite, false otherwise. |

## isfinite(float4)

Returns a bool4 indicating for each component of a float4 whether it is a finite floating point value.

```csharp
public static bool4 isfinite(float4 x)
```

### Parameters

**** (\[float4]\(/engine/6000.6/script-reference/unity/mathematics/float4)): The float4 value to test.

### Returns

| Type                                                                | Description                                                                           |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [bool4](/engine/6000.6/script-reference/unity/mathematics/bool4.md) | A bool4 where it is true in a component if that component is finite, false otherwise. |

## isfinite(double)

Returns true if the input double is a finite floating point value, false otherwise.

```csharp
public static bool isfinite(double x)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The double value to test.

### Returns

| Type                                                          | Description                                    |
| ------------------------------------------------------------- | ---------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the double is finite, false otherwise. |

## isfinite(double2)

Returns a bool2 indicating for each component of a double2 whether it is a finite floating point value.

```csharp
public static bool2 isfinite(double2 x)
```

### Parameters

**** (\[double2]\(/engine/6000.6/script-reference/unity/mathematics/double2)): The double2 value to test.

### Returns

| Type                                                                | Description                                                                           |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [bool2](/engine/6000.6/script-reference/unity/mathematics/bool2.md) | A bool2 where it is true in a component if that component is finite, false otherwise. |

## isfinite(double3)

Returns a bool3 indicating for each component of a double3 whether it is a finite floating point value.

```csharp
public static bool3 isfinite(double3 x)
```

### Parameters

**** (\[double3]\(/engine/6000.6/script-reference/unity/mathematics/double3)): The double3 value to test.

### Returns

| Type                                                                | Description                                                                           |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [bool3](/engine/6000.6/script-reference/unity/mathematics/bool3.md) | A bool3 where it is true in a component if that component is finite, false otherwise. |

## isfinite(double4)

Returns a bool4 indicating for each component of a double4 whether it is a finite floating point value.

```csharp
public static bool4 isfinite(double4 x)
```

### Parameters

**** (\[double4]\(/engine/6000.6/script-reference/unity/mathematics/double4)): The double4 value to test.

### Returns

| Type                                                                | Description                                                                           |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [bool4](/engine/6000.6/script-reference/unity/mathematics/bool4.md) | A bool4 where it is true in a component if that component is finite, false otherwise. |
