![]() |
VOOZH | about |
Syntax: float.truncate() Parameter: float value as argument Return: truncated value rounded to nearest precision If precision is -ve : integer with at least ndigits.abs trailing zeros If ndigits is +ve : a floating point number, otherwise integerExample #1 : Output :
truncate a : 0 truncate b : 2999 truncate c : 2Example #2 : Output :
truncate a : -83930 truncate b : -66662999