and how can I get values like 23,34?
and why is 2.5=2 and not 3?
Writeln (Round(2.5)); { Prints 2 (down) }
Writeln (Round(3.5)); { Prints 4 (up) }
But so far as I know, there no such simple function in Pascal that can convert real to string and conform with the default decimal symbol.You mean like this ?
and how can I get values like 23,34?
I tried
Label1.Caption := floattostr (R:2:2);
I guess the TS was looking for a very simple command like:Include sysutils, use the typehelpers.
S := Something(R:2:2);
But so far as I know, there no such simple function in Pascal that can convert real to string and conform with the default decimal symbol.