StrD()
Syntax
Result$ = StrD(Value.d [, NbDecimal])Description
Convert a double number into a string. A maximum number of decimal places can be specified. The number will be rounded, if 'NbDecimal' is smaller than existing decimal places of 'Value.d'.
Note: Signed integer numbers must be converted with Str() or StrQ() and unsigned numbers with StrU().
Example:Value.d = 10.54 Debug "Result: " + StrD(Value) ; we don't use the 2nd parameter, so we get a full float number Debug "Result: " + StrD(Value, 2) ; we want a result with two decimal places, no rounding needed as we have only two Debug "Result: " + StrD(Value, 0) ; we want a result with no decimal places, so the value is rounded
Supported OS
All