Using “integer type” has lots of merits against using “float type”
So, in some cases – especially in embedded system that uses ARM as their main MCU – we want to change float-operation into integer-operation by multiplying or shifting it.
Yes! It’s a good method in point of performance!
But we should take our careful attention to OVER/UNDERFLOW of integer-operation!!!
(In case of float-operation, in general, we are free from over/under flow!)
Keep in mind this.