Seperate Digits from a float

Hello All,

I have a GPS chip giving out a 2 decimal place speed value (eg. 13.40).
I simply need digit = 1, digit 2 = 3 and digit 3 = 4.

I have seen many 'solutions' but none have worked...

Any help would be amazing

The relevant part of code so far:

boardspeed = gps.speed.mph();
speedv = (boardspeed + 0.005) * 100 ;
digit1 = speedv/1000;
digit2 = speedv%1000/100;
digit3 - speedv%100;

Speedv is the boardspeed x 100 to remove decimals.

134%10 = 4 <---
(134-4)/10 = 13
13%10 = 3 <---
(13-3)/10 = 1
1%10 = 1 <---

Post all the code, using code tags. Snippets are useless.

So do you want to round the last digit or simply wipe it out of existance?