Conversions for the LCD display in FRDM-KL46Z

Dependents:   eem202a_display eem202a_resolutedreamer_1

Revision:
3:551fe797c723
Parent:
2:9467805cb02b
--- a/convert.cpp	Sat Apr 19 22:07:19 2014 +0000
+++ b/convert.cpp	Mon Apr 21 20:47:35 2014 +0000
@@ -125,7 +125,7 @@
         this->DP1(false);
         this->DP2(false);
         this->DP3(true);
-        this->display_digits ((unsigned int) number*10.);
+        this->display_digits ((unsigned int) (number*10.));
         return false;
     }
 // >=10     12.34
@@ -134,7 +134,7 @@
         this->DP1(false);
         this->DP2(true);
         this->DP3(false);
-        this->display_digits ((unsigned int) number*100.);
+        this->display_digits ((unsigned int) (number*100.));
         return false;
     }
 // >=0      1.234
@@ -143,7 +143,7 @@
         this->DP1(true);
         this->DP2(false);
         this->DP3(false);
-        this->display_digits ((unsigned int) number*1000.);
+        this->display_digits ((unsigned int) (number*1000.));
         return false;
     }
 // <0
@@ -153,7 +153,7 @@
         this->DP1(false);
         this->DP2(true);
         this->DP3(false);
-        this->display_digits ((unsigned int) number*-100., true);
+        this->display_digits ((unsigned int) (number*-100.), true);
         return false;
     }
 // <=-10    -12.3
@@ -162,7 +162,7 @@
         this->DP1(false);
         this->DP2(false);
         this->DP3(true);
-        this->display_digits ((unsigned int) number*-10., true);
+        this->display_digits ((unsigned int) (number*-10.), true);
         return false;
     }
 // <=-100   -123
@@ -171,7 +171,7 @@
         this->DP1(false);
         this->DP2(false);
         this->DP3(false);
-        this->display_digits ((unsigned int) -number, true);
+        this->display_digits ((unsigned int) (-number), true);
         return false;
     }
     else