Method: Flt::FormatBase.switch_sign_value
- Defined in:
- lib/float-formats/classes.rb
.switch_sign_value(v) ⇒ Object
switch between the encodings of minus and plus
522 523 524 |
# File 'lib/float-formats/classes.rb', line 522 def self.switch_sign_value(v) (v==0) ? minus_sign_value : 0 end |