# isfloat

Return true if variable var is a single or double matrix.

## Syntax

* res = isfloat(var)

## Input argument

* var - a variable

## Output argument

* res - a logical: true or false

## Description

**isfloat** returns a logical 1 if the argument is a single or double matrix and a logical 0 otherwise.

## Examples

```matlab
A = 3;
res = isfloat(A)
```

```matlab
A = single(3);
res = isfloat(A)
```

## See also

[isa](isa), [single](https://github.com/Nelson-numerical-software/nelson-gitbook/blob/master/en/types/single.html), [isdouble](isdouble).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
