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 » Developing U++ » U++ Developers corner » Interesting: with GTK backend, strtod does not work (correctly)
Interesting: with GTK backend, strtod does not work (correctly) [message #44451] Fri, 13 March 2015 09:36
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	DDUMP(strtod("3.5", NULL));
}


strtod("3.5", __null) = 3


Perhaps something that GTK does to locale is to blame, but strange anyway as I have en-us...

In any case, fix is simple: Use ScanDouble instead. But worth knowing anyway...
Previous Topic: Win32 install: going .msi
Next Topic: Google code shutting down
Goto Forum:
  


Current Time: Fri Mar 29 00:01:40 CET 2024

Total time taken to generate the page: 0.00854 seconds