Website hosting service by Active-Venture.com
 

 Back to Index

prev - up - next - index

Float

The class of floating-point numbers

SuperClass:

Numeric

Included Modules:

Precision

Class Methods:

induced_from(num)

Converts num into Float.

Methods:

self + other
self - other
self * other
self / other
self % other
self ** other

Arithmetic operations.

self == other
self < other
self <= other
self > other
self >= other

Floating-point comparison.

ceil

Returns the smallest integer value not less than self.

floor

Returns the largest integer value not greater than self.

round

Rounds self to closest integer.

to_f

Returns the receiver, since Floats do not need any conversion.


prev - up - next - index

matz@netlab.co.jp

 

  

 

 

2002-2004 Active-Venture.com Website Hosting Service

 
Buy domain name at only $5.95/yr with comprehensive domain hosting services. Domain registration and domain search service from $5.95 Cheap domain name registration and domain transfer service
 

Disclaimer: This documentation is provided only for the benefits of our website hosting customers.
For authoritative source of the documentation, please refer to http://www.ruby-doc.org/docs/