I have a float variable and would like to get only the part after the comma, so if I have 3.14. I would like to get 14 as an integer. How can I do that?
Just in case some wants another cheating way for it:
float x = 5.2f; int decimalPart = Math.Round((x - Math.Truncate(x))*100)
where 100 is used shift the decimal part.