Question : ruby get decimal
Answered by : shy-stoat-69qcnm9ii4si
1.23.modulo(1) => 0.23
Source : https://stackoverflow.com/questions/12406032/get-fraction-part-of-a-decimal-number | Last Update : Tue, 14 Dec 21
Question : ruby 2 decimal
Answered by : lior
sprintf('%.2f', 53) # => "53.00"
Source : | Last Update : Mon, 07 Mar 22