Str (Magic xpi 4.5)
Converts a number to an Alpha string, according to a picture.
Syntax:
|
Str(Numeric number, Alpha picture)
|
Parameters:
|
number: The number to be converted into an Alpha string.
|
|
picture: The format of the resulting string. For a full description, see Picture Formats.
|
Returns:
|
Alpha string containing converted number.
|
Example:
|
Str(45.12,'##.#') returns '45.1'.
|
Note:
|
Since a picture is used, the function may cause rounding. Str(39.999,'##.##') returns '40.00'.
If the result picture is unknown, use " as the picture. For example, Str(45.67,"). Magic xpi's internal algorithm will decide which picture to use, based on the number to be converted.
|
See also:
|
Val
|