I need to work with decimals. In my program, the user need to put a number with decimals to convert that number.
The problem is: If I try to convert the argument into a
You call to_i, you get integer.
to_i
Try calling to_f, you should get a float.
to_f
For more string conversion methods, look here.