Use %f or %e depending on magnitude
puts '%g' % 1.23456E12 # => '1.23456e+12': Use %f or %e depending on magnitude