diff --git a/Marlin/ultralcd.pde b/Marlin/ultralcd.pde
index e050c6125d0e99d31dd3d254dc2f0c44e7c91ecc..eee89237d8a0d8ff93a00ed0fb369debc2525582 100644
--- a/Marlin/ultralcd.pde
+++ b/Marlin/ultralcd.pde
@@ -2967,7 +2967,7 @@ char *itostr4(const int &xx)
// convert float to string with +1234.5 format
char *ftostr51(const float &x)
{
- int xx=x*10;
+ long xx=x*10;
conv[0]=(xx>=0)?'+':'-';
xx=abs(xx);
conv[1]=(xx/10000)%10+'0';
@@ -2983,7 +2983,7 @@ char *ftostr51(const float &x)
// convert float to string with +123.45 format
char *ftostr52(const float &x)
{
- int xx=x*100;
+ long xx=x*100;
conv[0]=(xx>=0)?'+':'-';
xx=abs(xx);
conv[1]=(xx/10000)%10+'0';