Function fround

Calculate the nearest single-precision float representation of each element in an array.

> fround([1.2, 2.5, 3.7])
[1.2000000476837158, 2.5, 3.700000047683716]
  • Parameters

    • array: number[]

      The array of numbers.

    Returns number[]

    An array of numbers in single-precision float.