how to convert a fraction to float in ruby

后端 未结 4 1821
盖世英雄少女心
盖世英雄少女心 2021-02-14 17:28

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.

I am trying in

4条回答
提交回复
热议问题