Float to string CONVERSION

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ktg024
    New Member
    • May 2007
    • 21

    #1

    Float to string CONVERSION

    HI all,
    I tried to convert the floating value to string, so i used like this

    sprintf(buffer, "%f",float_vari anle);
    i compiled using gcc compiler it always prints f. If i compile in VC++ it works fine.
    if someone faced the same give heart,,,,,,


    Thanks all........
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    What platform are you building for?

    It is not uncommon for printf floating point support to be left out on embedded platforms where there is no floating point processor as having it in makes printf a very large function since it then has to use a floating point emulation library.

    Check you standard library documentation.

    Comment

    Working...