single
Convert to single-precision floating-point.
Syntax
Section titled “Syntax”S = single(X)Description
Section titled “Description”Returns X converted to single (32-bit IEEE-754). Half the storage and throughput of double on modern CPUs but with reduced precision (~7 decimal digits vs ~15).
Example
Section titled “Example”single(pi) % 3.1415927 (single precision)