TRUNC(a,n)
TRUNC(a,n)
is an arithmetic
function with the following result (for the expressions a
and n
that
are numbers):
TRUNC(a)
– Truncation of the decimal
places from a
TRUNC(a,n)
– Truncation of the number a
after n
places after the decimal point
TRUNC(a,-n)
– Setting n
places
of the number a
before the decimal point to 0
a, n |
Result of the TRUNC(a,n) Function |
|---|---|
|
Number |
|
Integer component of |
|
Number |
|
As with |
|
The integer component of |
|
Floating point number |
|
Fixed point number |
|
|
|
Special |