Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
a = '60.950' b = a.to_f puts a # => 60.950 puts b # => 60.95
小数点以下3桁を毎回表示したい。0の最後に強制するにはどうすればよいbですか?
0
b