Im building a gps reciever. I allready recieve coordinates, but I want to display these coordinates on an PCD8544 lcd screen. I recieve the coordinates as a float, example:
This coordinate is the type I want to display on the PCD8544. I have tried to make the float an int bij simply multiplying it bij 100,000. This obviously doesn't work, because the number becomes 5,100,000. Can somebody explain how I can convert an 5 decimal float like: 51.96512 to an int like: 5196512 It is no problem to display 5196512 on the PCD8544, but I cant convert the 51.96512 to 5196512.
Any help is welcome.