HELP: Integer multiplied by 10 to the power of fractional digits TYPE: OBJECT SYNTAX: INT(FRACDIGITS=num,ROUNDING[=AWAYFROMZERO/NEAREST/TOWARDZERO/ERROR],ENDIAN=SYSTEM/BIG/LITTLE/LOCAL,WIDTH=num/W32/W64)
The object generates an integer in 2's complemet multiplied by 10 to the power of the specified decimal places. 32 or 64 bit widths are supported and it is possible to work with or without a sign. The byte order and rounding rules can be defined for this. By default, the system's endianness is used.
NUMBER: FRACDIGITS=num - Number of fractional digits (after comma) [0 - only integral part]NUMBER: ROUNDING=AWAYFROMZERO/NEAREST/TOWARDZERO/ERROR - Rounding method if fractional digits don't fit [TOWARDZERO(=cut off)]
AWAYFROMZERO - Round fractional part away from zero (0.1 => 1; -0.1 => -1)NEAREST - Round fractional part toward nearest integer (0.1=>0; 0.5=>1; -0.5=>-1)TOWARDZERO - Round fractional part toward zero (=cut off) (0.9 => 0; -0.9 => 0)ERROR - Return an error instead of rounding a too long numberNUMBER: ENDIAN=SYSTEM/BIG/LITTLE/LOCAL - Byte order of the the integer value [SYSTEM]
SYSTEM - Byte order of the default logical systemBIG - Big endian byte orderLITTLE - Little endian byte orderLOCAL - Byte order of the real physical systemNUMBER: WIDTH=num/W32/W64 - Width of integer number in bits [64]
W32 - 32 bit integerW64 - 64 bit integer