Round
|
Returns the number rounded to the number of
decimal places that you specify in the call to the Round function. This
means that you have to pass two parameters to the Round function: the
number to be rounded, and the number of decimal places that you want
to get back in the result. When you pass parameters to a 4th Dimension
function, you separate the parameters with semicolons. Let's take the
number 518.567 and see what happens when we pass different parameters.
|
Round(518.567;0) returns the value 519
Round(518.567;1) returns the value 518.6
Round(518.567;2) returns the value 518.57
Round(518.567;3) returns the value 518.567
Round(518.567;-1) returns the value 510
Round(518.567;-2) would return the value 500
|
Trunc
|
Returns the number truncated (chopped
off) to the number of decimal places that you specify in the call
to the Trunc function. This means that you have to pass two parameters
to the Trunc function: the number to be truncated, and the number of
decimal places that you want to get back in the result. Let's take the
number 518.567 and see what happens when we pass different parameters.
|
Trunc(518.567;0) returns the value 518
Trunc(518.567;1) returns the value 518.5
Trunc(518.567;-1) returns the value 510
|
Abs
|
Returns the absolute value of a number; that
is, Abs returns the Positive value of the number.
|
Abs(518.567) returns the value 518.567
Abs(-518.567) returns the value 518.567
|