printing a float on a GLCD

I tried to print a float with a GLCD and do this simple test:

float x = 5/2 ;
char test[10];
dtostrf(x,1,2,test);
page1L2 += test ;

result is 2.00

if I tried with x=2.5 result is correct.

what is wrong ?
Thanks for your help

try 5.0/2 or 5/2.0

that's ok
Thanks