U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » problem with Format
problem with Format [message #36141] Thu, 03 May 2012 18:08 Go to previous message
nixnixnix is currently offline  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
 
Read Message
Read Message
Previous Topic: Problem with "Time" type in XML strings
Next Topic: Read CSV Line (Solved)
Goto Forum:
  


Current Time: Mon Jun 29 17:31:26 GMT+2 2026

Total time taken to generate the page: 0.00587 seconds