如何将浮点数舍入到Ruby中指定数量的有效数字? - How do I round a float to a specified number of significant digits in Ruby?