https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #3 from e2cd58e1 at opayq dot com ---
but what I want to do is read in values with point as decimal separator. Using
open(unit=1,file='bug.dat', decimal=point)
doesn't seem to change anything.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
kargl at gcc dot gnu.org changed:
What|Removed |Added
CC||kargl at gcc dot gnu.org
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #5 from e2cd58e1 at opayq dot com ---
I actually don't know - how can I test this?
But either way, shouldn't
open(unit=1,file='bug.dat', decimal=point)
read 1.234 in as 1.234 no matter what the locale settings are?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #6 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #4)
(In reply to e2cd58e1 from comment #3)
but what I want to do is read in values with point as decimal separator.
Using
open(unit=1,file='bug.dat',
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #7 from e2cd58e1 at opayq dot com ---
For
printf(Test 1 = %.4f\n,strtod(1.2345,NULL));
printf(Test 2 = %.4f\n,strtod(1,2345,NULL));
I get
Test 1 = 1,
Test 2 = 1,2345
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #8 from Steve Kargl sgk at troutmask dot apl.washington.edu ---
On Mon, Jul 21, 2014 at 06:18:14PM +, e2cd58e1 at opayq dot com wrote:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #7 from e2cd58e1 at opayq
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #9 from e2cd58e1 at opayq dot com ---
Just what I get:
1.2345 = 1.2345 and 5,4321 = 5.
1.2345 = 1, and 5,4321 = 5,4321
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
--- Comment #2 from Jerry DeLisle jvdelisle at gcc dot gnu.org ---
Please see PR36857 for some background.
gfortran uses the glibc strtod functions to convert the string to real. I think
in your C code you need to do something like this:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
Jerry DeLisle jvdelisle at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last