Printing in RPI Pico 2040

Hi,
how can print all the decimal number with Serial.print() and with RPPico2040?
because I cant use Serial.printf and with Serial.print it just print 4.57 !

void setup() {
   Serial.begin(115200); 
   delay(500);

   float x=4.57054;
   Serial.print(" x= ");
   Serial.println(x);
}

Try :
serial.print(x,4);

Thank you!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.