Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/kernel/float.rb
Overview
Float クラス拡張メソッド
Instance Method Summary collapse
Instance Method Details
#to_deg ⇒ Object
6 7 8 |
# File 'lib/kernel/float.rb', line 6 def to_deg self * 180.0 / Math::PI end |
#to_rad ⇒ Object
10 11 12 |
# File 'lib/kernel/float.rb', line 10 def to_rad self * Math::PI / 180.0 end |