Defining decimal numbers on different operation system, how to understand if point or comma is used

Posted by Cmptrb on Stack Overflow See other posts from Stack Overflow or by Cmptrb
Published on 2010-04-15T11:23:20Z Indexed on 2010/04/15 11:33 UTC
Read the original article Hit count: 154

Filed under:
|
|

Hi,

I have written a small program where the program works differently on different operating systems (xp, win7) The problem is the program reads some float numbers such 2,686.

One operating system (win7) convert it to float true, but on xp it goes wrong and print it 2686. How can I understand which symbol the operation system uses for decimal numbers ?

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about decimal