floatround

warning

This function starts with lowercase letter.

Description

Round a floating point number to an integer value.

NameDescription
valueThe value to round.
methodThe floatround method to use.

Returns

The rounded value as an integer.

Examples

floatround(3.3, floatround_ceil);

Related Functions

  • float: Convert an integer to a float.
  • floatstr: Convert an string to a float.