trunc >>-trunc-+-----+----------------------------------------------->< +-(n)-+ Returns the integer part the receiving string, which is a number, and
[n]
decimal places. The default
[n]
is String class - trunc method 12.3~trunc -> 12 127.09782~trunc(3) -> 127.097 127.1~trunc(3) -> 127.100 127~trunc(2) -> 127.00 Note The [number] is rounded according to the current setting of NUMERIC DIGITS if necessary, before the method processes it. |