4D v16.3Trunc |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
Trunc
Trunc
Trunc returns number with its decimal part truncated to the number of decimal places specified by places. Trunc always truncates toward negative infinity. If places is positive, number is truncated to places decimal places. If places is negative, number is truncated on the left of the decimal point. The following example illustrates how Trunc works with different arguments. Each line assigns a number to the vlResult variable. The comments describe the results: vlResult:=Trunc(216.897;1) ` vlResult gets 216.8
See also
|
PROPERTIES
Product: 4D HISTORY
Created: < 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||