Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (22 sloc) 352 Bytes

!SLIDE subsection

Number

!SLIDE

Number

@@@ Ruby
# Fixnum
1
-1

# Float
1.0

# The following two objects are equal
1000000
1_000_000

!SLIDE

Number

@@@ Ruby

# 0 evaluates to true
0 ? true : false
# => true

# not-0 evaluates to true
10 ? true : false
# => true
Jump to Line
Something went wrong with that request. Please try again.