- - - 目次

Float

浮動小数点数のクラス.

スーパークラス:

Numeric

インクルードしているモジュール:

Precision

クラスメソッド:

induced_from(num)

numFloat に変換した結果を返します.

メソッド:

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

算術演算子.

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

比較演算子.

ceil

selfより大きい最小の整数を返します.

floor

selfより小さい最大の整数を返します.

round

selfにもっとも近い整数を返します.

to_f

レシーバをそのまま返します(変換の必要がないので).

to_i

値を整数に変換します.


- - - 目次

matz@netlab.co.jp