Floating-point numbers

Hello!

I would like know how i can choose in arduino the number of digits after of the point. I know that i have to use the variable float.

For example:

On having programmed in C with the function of below I can choose decimal when to stamp.

printf("%.2f", myFloat);

23.1234
23.1
34.54

Serial.println(myFloat,4);

etc.

Pete