Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1187
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: Wed May 29 05:18:35 CEST 2024

Total time taken to generate the page: 0.03259 seconds