[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Real_to_Str StrngTTT
Purpose To convert a real number to a string with a specified number
of decimal places.
Returns string;
Declaration Real_to_Str(R:real; Dec:byte):string;
R is the real number
Dec is the number of decimal places for the string
Uses StrngTTT.
Example
USES STRNGTTT;
VAR TTT : STRING;
BEGIN
TTT := REAL_TO_STR(12345.789990,2);
END.
The string TTT is assigned the value "12345.79".
See Also:
Str_to_Real
Int_to_Str
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson