Mega Code Archive

 
Categories / Ruby / Language Basics
 

Full-length floating-point numbers

puts '%f' % 1234.567   # => '1234.567000': full-length floating-point numbers