I have a string \"1/16\" I want to convert it to float and multiply it by 45. However, I dont get the desired results.
\"1/16\"
45
I am trying in
Use Rational
>> (Rational(*("1/16".split('/').map( &:to_i )))*45).to_f => 2.8125