Well, I know that floating points are difficult to use because they carry out to so many decimal points that comparing two numbers for similarity will almost certainly result in the numbers not being the same. If I can truncate it down to only two decimal places, that will be enough to determine if two results are the same or not. After three or four decimal places, my numbers will start to change, but I dont care about that much detail for my project.

I am converting analog readings (0-1052) to velocity readings which will only change slightly and result in fractions or rather decimals. So, I want to use float, but only carry to two decimal places. I'm just not familiar with C/C++ and it's syntax.