Float variable with more than 2 decimal places

Hi,

I want to use a float variable with more than 2 decimal places. For example i want to show a number like 0.0274 but as you know it is showing 0.03 (using the standard float data type). How can i adjust the length of the decimal places in my sketch? is there a special command for this?

Thank you very much!!!

What do you mean by use? If you mean Serial.print() then...

Serial.print(1.23456) gives "1.23"
Serial.print(1.23456, 4) gives "1.2346"

That's ecactly what i needed !!! Thank you very much! Didnt`t know the command Serial.print(x,y) with y adjusting the decimal places. Perfect!!

That's what the reference section of the website is for.