Converting to decimal on LCD display

I need to display a value on a LCD display as a decimal. it will be x/100 and the result will be between 0.00 and 2.00
If I try
lcd.print(x/100);
it does not work and simply show 1

Thanks

you have to add ".0"

Serial.print(2.0/ 100.0);

Too easy!
So will all maths work like that?

well that is for floats,
integers will be fine without the decimal.
take a look at the data type section

Two remarks:

Be aware that using floats is relative expensive in term of memory and speed.
Doing it with int 's is possible but takes a few lines of code as you need to "calculate every digit simultaneously.

// you can add a 2nd parameter to the print statement to idicate the number of decimals, default this is 2.
Serial.print(2.0/ 100.0, precission);

OP, say you already have a number between 0 and 200, and you want to display between 0.00 and 2.00, here is what the extra lines rob was referring to:

lcd.print(number/100); // integer part
lcd.write('.'); // Print decimal point
if ((number%100)<10) lcd.write('0');// leading zero
lcd.print(number%100);