method
truncate
v2_4_6 -
Show latest stable
- Class:
Float
truncate(*args)public
Truncates float to a given precision in decimal digits (default 0 digits).
Precision may be negative. Returns a floating point number when ndigits is more than zero.