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: 13996
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: Mon Jul 22 13:38:01 CEST 2024

Total time taken to generate the page: 0.01577 seconds