Convert the float into an int. This gives you the 1. Save that as an int. Then subtract 1 from your float, then multiply by 10. Then convert that into an int. This gives you the 2. Save that as an int.
↧