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

Home » U++ Library support » U++ Core » Weird result with Format();
Weird result with Format(); [message #60301] Tue, 14 November 2023 20:53 Go to previous message
forlano is currently offline  forlano
Messages: 1243
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I have spent considerable amount of time to understand what it is happening but with no result (U++ 17080 and clang in debug mode).

#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	float n = 3.0;
	String sscore;
	sscore = Format("%f", n);
	Cout()<<sscore<<"\n" ;
	
	sscore = AsString(n);
	Cout()<<sscore<<"\n" ;	
}


Result:
<N/A 'f' for type 13>
3

In release mode I get
3f
3

Does format has changed the way to work? It seems no longer recognise the "f" specifier.
Thanks,

Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About recent memset optimization
Next Topic: Default comparisons for type derived from Moveable
Goto Forum:
  


Current Time: Sun Jun 28 11:14:07 GMT+2 2026

Total time taken to generate the page: 0.00573 seconds