Advantage Concepts
Advantage Expression Engine function that returns a numeric value rounded to a specified number of digits
ROUND(<nNumber>, <nDecimals>) à nRounded
<nNumber> The numeric value to be rounded.
<nDecimals> Defines the number of decimal places to retain. Specifying a negative <nDecimals> value rounds whole number digits.
ROUND() returns a numeric value.
ROUND() is a numeric function that rounds <nNumber> to the number of places specified by <nDecimals>. Specifying a zero or negative value for <nDecimals> allows rounding of whole numbers. A negative <nDecimals> indicates the number of digits to the left of the decimal point to round. Digits between five and nine (inclusive) are rounded up. Digits below five are rounded down.
Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.
TAdsSettings.NumDecimals
AdsSetDecimals