itoa/atof

This is a discussion on itoa/atof within the C++ Programming forums, part of the General Programming Boards category; I want to be able to do what itoa does, but I need to convert from double to char. Is ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    417

    itoa/atof

    I want to be able to do what itoa does, but I need to convert from double to char.

    Is there a command for that that would still convert to a different base? I only need to be able to convert the double to a string, not both ways:

    _itoa( number, output, base );

    thats what I want, only I need it to be a double, not an integer.

    _ftoa( number, output, base );

    something like that, if it exists.

    Any ideas? Thanks so much!

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    417
    Couldn't you put a float in binary? And why not?

Popular pages Recent additions subscribe to a feed

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