Ruby : Math
Math is a module which has a lot of useful Methods.
To convert from one class to another just call the class name followed by parameter.
Integer(field)
Float(field)
String(field)
All other method are applied on the object itself like 3.div 3 or 12.divmod 5 which divides and gives the balance. or you can remainder to get the remainder alone.
you can question the number just like normal language like
.zero? .nonzero? .infinity? .finite? .nan? .integer? .float? .ciel .floor .round .next .chr .log .sqrt .exp .length
To get constants since it is a Module Math::PI
Prime numbers : Prime.new : p.next,p.succ.