Method: Flt::FormatBase.bias
- Defined in:
- lib/float-formats/classes.rb
.bias(significand_mode = :scientific_significand) ⇒ Object
Exponent bias for excess notation exponent encoding The argument defines the interpretation of the significand and so determines the actual bias value.
647 648 649 650 651 652 653 654 655 656 |
# File 'lib/float-formats/classes.rb', line 647 def self.bias(significand_mode = :scientific_significand) case significand_mode when :integral_significand @integral_bias when :fractional_significand @fractional_bias when :scientific_significand @scientific_bias end end |