Home » U++ Library support » U++ Core » problem with Format
problem with Format [message #36141] |
Thu, 03 May 2012 18:08 |
nixnixnix
Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
|
Senior Member |
|
|
Hi,
I want to print a double with one decimal place like
57.2m Speed
so naturally I use
String s = Format("%.1fm Speed",height);
and this usually works. However, just now my program complains that it can't find the fm format specifier.
I went to the documentation on Format and it appears to say that I should do this
String s = Format("%1fm Speed",height);
but that really doesn't work. That gives
57.200000m Speed
For now I will have to leave a space between but really I think it should recognise the f and ignore the m.
Cheers,
Nick
|
|
|
Goto Forum:
Current Time: Fri Apr 26 11:20:46 CEST 2024
Total time taken to generate the page: 0.06489 seconds
|