- single is both a function and a constant.
- As a function, it rounds its argument to the nearest IEEE 754 single precision (i.e. IEEE754-2008 binary32) number. Subnormal numbers are supported as well as standard numbers: it is the real rounding described in the standard.
- As a constant, it symbolizes the single precision format. It is used in contexts when a precision format is necessary, e.g. in the commands round and roundcoefficients. In is not supported for implementpoly. See the corresponding help pages for examples.

> SG(0.1);

1.10011001100110011001101_2 * 2^(-4)

> SG(4.17);

1.000010101110000101001_2 * 2^(2)

> SG(1.011_2 * 2^(-1073));

0

See also: double, doubleextended, doubledouble, tripledouble, roundcoefficients, implementpoly, round, printsingle

Go back to the list of commands