DECIMAL
This script will return a string which has a specified number of digits from the decimal point. The number is always rounded down.
FORMAT: DECIMAL (number, number of digits)
DEFINITIONS:
- Number: Numerical expression for the number of digits.
If positive, it specifies the number of digits to show at the right of the decimal point. If negative, it specifies the number of digits to the left of the decimal point starting at tens.
EXAMPLE 1:
show DECIMAL (34.235, 2)
Shows 34.23.
EXAMPLE 2:
show DECIMAL (3423.456, -2)
Shows 3400.