Replace "." (dot-comma) with "," (regular-comma) for MS Excel

This is a discussion on Replace "." (dot-comma) with "," (regular-comma) for MS Excel within the C Programming forums, part of the General Programming Boards category; Hi! I've got a simple question: How do I make double-vars fit into Excel? I fprintf() some doubles into a ...

  1. #1
    Unregistered
    Guest

    Replace "." (dot-comma) with "," (regular-comma) for MS Excel

    Hi!

    I've got a simple question:

    How do I make double-vars fit into Excel?

    I fprintf() some doubles into a txt-file, where the cells are divided by tabs.

    But the problem is that the double's use "." for decimals. Excel on the other hand uses ",".

    I guess there is a very easy solution to this, but which function should I use, and how? And which header-file should I include?

    Thanks :-)

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Excel uses "." on mine.....but often Europeans use "," to signify decimal places.........

    My guess.......Start->Settings->Control Panel->Regional Options/Settings->Currency->Decimal Place.....

    Change it to "."

  3. #3
    Unregistered
    Guest

    No, that didn't do it - what about a C-function?

    Didn't help. I still have problems.

    But isn't there any C-function to replace the "." with "," ?

    Some sort of replace() or something?

    Thanks again,

    Torbjørn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help making a dot bounce up and down y axis in this prog
    By redwing26 in forum Game Programming
    Replies: 10
    Last Post: 08-05-2006, 01:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21