rounding float to 2 digits

Hello I just started to play with the LCD library.

When I use lcd.print((accuspanning/220.0)*3.26,DEC);

The result is 12.9510943215

How can I round this to 12.95

Is there a special syntax for this ?

regards André

The second argument to the print method is the number of digits to display after the decimal point, not the format. You told it to display the value to 10 (DEC) decimal places. You might try telling it to only display two places (BIN). Or, just use the number 2.

Thanks PaulS it works !!!

Good day.