This function returns a number by truncating the decimal portion.
Parameter
a - A Double value to be truncated.
Return value
The return value is a Number.
Example
The return value of the following statement is 25.00.
Truncate(25.4321)
This function returns a number by truncating the number at the decimal point. The number is truncated to the decimal place indicated by argument b, and the function returns a fractional number.
Parameters
Return value
The return value is a Number.
Example
The return value of the following statement is 25.430.
Truncate(25.432, 2)