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

Home » U++ TheIDE » U++ TheIDE: Packages » atof trucates real number with a dot but not comma on Linux
Re: atof trucates real number with a dot but not comma on Linux [message #13656 is a reply to message #13653] Sat, 19 January 2008 14:23 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
cocob wrote on Sat, 19 January 2008 11:44


Yes it works (with ',') with a gcc program without U++ and it works with U++ without core package dependency


If it works with ',' with a normal gcc program, it means that for sure is sour system default fractional part separator. IMO, if this is such a problem and you don't want to research/mess around with system locales, why not just write your own atof function?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UVS2 usage
Next Topic: vsprintf() doesn't support "%I64u" format in Win32 platform?
Goto Forum:
  


Current Time: Fri Jul 17 22:37:53 GMT+2 2026

Total time taken to generate the page: 0.00798 seconds