Float to String does not work

Hi, thanks for the fast reply.

If I put this code snippet into a brand new empty sketch then its working.
But If I put your example into my project sketch (it uses can bus (mcpCan) and OLED display (adafruit sh1106) then its not working. The valueStr is null.

Could the Low memory warning cause this?

End of the build I got this message:

Sketch uses 23162 bytes (71%) of program storage space. Maximum is 32256 bytes.
Global variables use 1832 bytes (89%) of dynamic memory, leaving 216 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.

Thanks.