https://kotlinlang.org logo
#random
Title
# random
i

Igor

06/04/2018, 10:13 PM
Hello, looking for most appropriate solution to one problem. I have two currency values:
int a = 1234 // 12.34 Eur
int b = 1230 // 12.30 Eur
I’m struggling to get int b as shown in the comment. I’ve tried doing
b / 100.0 // but that equals 12.3
And I need that 0 at the end. Any help would be appreciated 🙂