Float

Float

ri

 ------------------------------------------------- Class: Float < Numeric
       Float  objects represent real numbers using the native
      architecture's double-precision floating point representation.
 
 ------------------------------------------------------------------------
 
 
 Includes:
 ---------
      Precision(prec, prec_f, prec_i)
 
 
 Constants:
 ----------
      ROUNDS:     INT2FIX(FLT_ROUNDS)
      RADIX:      INT2FIX(FLT_RADIX)
      MANT_DIG:   INT2FIX(DBL_MANT_DIG)
      DIG:        INT2FIX(DBL_DIG)
      MIN_EXP:    INT2FIX(DBL_MIN_EXP)
      MAX_EXP:    INT2FIX(DBL_MAX_EXP)
      MIN_10_EXP: INT2FIX(DBL_MIN_10_EXP)
      MAX_10_EXP: INT2FIX(DBL_MAX_10_EXP)
      MIN:        rb_float_new(DBL_MIN)
      MAX:        rb_float_new(DBL_MAX)
      EPSILON:    rb_float_new(DBL_EPSILON)
 
 
 Class methods:
 --------------
      induced_from
 
 
 Instance methods:
 -----------------
      %, *, **,  , -, -@, /, <, <=, <=>, ==, >, >=, abs, ceil, coerce,
      divmod, eql?, finite?, floor, hash, infinite?, modulo, nan?, round,
      to_f, to_i, to_int, to_s, truncate, zero?

refe

 ==== Float ====
 浮動小数点数のクラスFloat の実装は C 言語double で、その精度は環
 境に依存します。
 
     # あるシステムでの 1/3(=0.333...) の結果
     printf("%.50f\n", 1.0/3)
     => 0.33333333333333331482961625624739099293947219848633
 ---- Singleton methods ----
 DIG EPSILON MANT_DIG MAX MAX_10_EXP MAX_EXP MIN MIN_10_EXP
 MIN_EXP RADIX ROUNDS induced_from
 ---- Instance methods ----
 % * **   - / < <= <=> == > >= finite? infinite? nan? to_f
 to_i truncate
 ---- Singleton methods (inherited) ----
 ---- Instance methods (inherited) ----
  @ -@ === =~ __id__ __send__ _dump _load abs between? ceil
 class clone coerce display div divmod dup eql? equal?
 extend floor freeze frozen? hash id initialize
 initialize_copy inspect instance_eval instance_of?
 instance_variable_get instance_variable_set
 instance_variables integer? is_a? kind_of? marshal_dump
 marshal_load method method_missing methods modulo nil?
 nonzero? object_id pretty_print pretty_print_cycle
 pretty_print_instance_variables private_methods
 protected_methods public_methods quo remainder
 remove_instance_variable respond_to? round send
 singleton_method_added singleton_method_removed
 singleton_method_undefined singleton_methods step taint
 tainted? to_a to_ary to_hash to_int to_s to_str type
 untaint zero?

  • 2006/05/12 19:52:11 %
  • 2006/05/12 19:52:25 *
  • 2006/05/12 19:52:41 -
  • 2006/05/12 19:52:48 <
  • 2006/05/12 19:53:03 <=
  • 2006/05/12 19:53:11 <=>
  • 2006/05/12 19:53:19 ==
  • 2006/05/12 19:53:41 >
  • 2006/05/12 19:53:58 >=
  • 2006/05/15 12:01:25 acos
  • 2006/05/15 12:02:54 asinh
  • 2006/05/15 12:03:11 at
  • 2006/05/15 12:03:35 atan2
  • 2006/05/15 12:18:15 eql?
  • 2006/05/15 12:18:30 erf
  • 2006/05/15 12:18:38 erfc
  • 2006/05/15 12:20:44 exp
  • 2006/05/12 20:02:35 Float
  • 2006/05/15 12:25:10 frexp
  • 2006/05/15 12:30:31 hex