C++ to_string float

I simply want to convert a float into a string or at least a char array. However I always get wrong returns. For example the length is over 150000 while I want to convert 3.3... For integer to_string works great. But not floating points.

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parents
  • Hi,

    How are you enabling C++ support in the project? What C++ libraries have you enabled? I am not sure if for instance the Minimal C++ Library supports to_string for floating point numbers.

    Also, do you get any warnings when building the project?

    Regards,
    Terje

Reply
  • Hi,

    How are you enabling C++ support in the project? What C++ libraries have you enabled? I am not sure if for instance the Minimal C++ Library supports to_string for floating point numbers.

    Also, do you get any warnings when building the project?

    Regards,
    Terje

Children
  • This is my project conf file

    Fullscreen
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    The minimal c++ is not found by the following line

    Fullscreen
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX