Float converting

Hi

I’m trying to print a float using the instruction above:

printf(“Speed = %3.1f \r\n”,speedRaw);

But the output on the console is:

Speed = %3.1f

The MCU doesn’t write the float value.

In C is a normal function, with the online compiler it’s work but with the OS Mbed studio no.

Somebody can help me

Thanks

Hi,

What version of MbedOS you use?
If MbedOs6+ then check this

BR, Jan

I’m using the 6. Thank a lot. I’ll try it.