Ruby code for rationalize() method # Initialize value a = 0.767 b = 2999.011 c = 2.0000 # Printing result puts "Rationalizing a:#{a.rationalize(0.01)}\n\n" ...
確定! 回上一頁