AsStringIntF( number, FormatString )
Converts a number to a string. FormatString looks like "%[Width][.Precision]Type
This function begins by rounding the "number" value to create an integer type. The formatting is the same as AsStringF(), but the possible format types are different since the value is not floating point.
Width is the number of digits to the left of the decimal point. (spaces will be used if no significant digits are available)
Precision is the number of digits to the right of the decimal point.
Type is one of:
d = Decimal (integer)
u = Unsigned decimal
x = Hexadecimal
Examples:
AsStringF( 123.456, "%d" ) = 123
AsStringF( 123.56, "%d" ) = 124
AsStringF( 11, "%x" ) = B
AsStringF( 255, "%x" ) = FF
Note: Any text in the format string that is not part of the % specification will be added as a string literal:
AsStringF( 123.56, "The value is (%d)" ) = The value is (124)
|