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
Menu
Numeric class « Number « Ruby
Ruby
Number
Numeric class
1.
The integer? method comes from the Numeric class
2.
Is a number integer
3.
More Math Methods
4.
Get the ceiling or floor of a number (from Float, Integer, or Numeric):
5.
Or round a number up or down (Float, Integer, or Numeric):
6.
Get the next integer with next (or its alias succ):
7.
Find out the modules Numeric class resides