I want to do some calculation with a list of String
:
1.23
4.56
7.89
For accuracy, I want the convert the above String
to int
:
123
456
789
How to do that?
Sorry for my vague description. What I really need is no matter what the input is, the int value should hold the specific decimal:
Let say I need 4 decimal:
String:1 ; int: 10000
String:1.23 int: 12300
String:1.2345 int:12345