Math.fround

Returns the nearest single precision float (32-bit) representation of a number.

Syntax

fround(value)

Parameters

Return value

A number.

Examples

Math.fround(Math.PI)
3.1415927410125732