Progress
Language Reference
TRUNCATE Function
Truncates a decimal expression to a specified number of decimal places, returning a decimal value.
SYNTAX
expression
A decimal expression that you want to truncate.
decimal-places
A non-negative integer expression that indicates the number of decimal places for a truncated expression.
EXAMPLEThis procedure doubles each customer’s credit-limit and then truncates that value before rounding it to the nearest $1000.
NOTE
You can use the TRUNCATE function to treat division as integer division; for example, i = TRUNCATE (x / y, 0).
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |