TRUNCATE function
Truncates a decimal expression to a specified number of decimal places, returning a decimal value.
Syntax
expression
decimal-places
ExampleThis procedure doubles each Customer’s
CreditLimit
and then truncates that value before rounding it to the nearest $1000:
NoteYou can use the TRUNCATE function to treat division as integer division. For example, i = TRUNCATE (x / y, 0).
See also
OpenEdge Release 10.2B
|