Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Create an exponent : Number Literal « Number « Ruby
Ruby
Number
Number Literal
Create an exponent
puts 31415.0e-4
Related examples in the same category
1.
Make number easier to read by using underscores every three digits from the right
2.
Create floating-point numbers simply by using a decimal point
3.
Create binary numbers by prefacing them with 0b
4.
Create octal number - base eight - numbers by prefacing them with a 0
5.
create hexadecimal numbers - base 16 - by prefacing them with 0x
6.
Add commas to a big integer value