sc_trunc_num({My_Field}, Decimal_Number)

This macro is used to truncate numerical values which exceed the decimals amount specified.

Parâmetro
Descrição
My_Field Variable with value to format (return in the same variable).
Decimal_Number Amount of decimals to display.




Ex. 1:
sc_trunc_num({my_value}, 2);

Input value = 1250.235
Output value = 1250.23

Input value = 1250.2
Output value = 1250.20

Input value = 1250
Output value = 1250.00