Change the decimal separator

Change the decimal separator

alinerocha的头像

Hi, I have to read a file like this:

vaso=0,30

but I can do this only if I use

vaso=0.30

How can I change the decimal separator?

Thanks,
Aline

3 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
Roman Dementiev (Intel)的头像
Quoting - alinerocha Hi, I have to read a file like this:

vaso=0,30

but I can do this only if I use

vaso=0.30

How can I change the decimal separator?

Thanks,
Aline

Hi Aline,

could you please specify which programming language are you using for reading files? Which input/output library?

Best regards,
Roman

alinerocha的头像
I'm using a fortran code.

I put the date in a file.txt and would like to read from the data from it.

I'm using the "read" command.

Thanks,

Aline

登陆并发表评论。