Exception: Flt::Num::InvalidContext
- Defined in:
- lib/flt/num.rb
Overview
Invalid context exception.
This occurs and signals invalid-operation if an invalid context was detected during an operation. This can occur if contexts are not checked on creation and either the precision exceeds the capability of the underlying concrete representation or an unknown or unsupported rounding was specified. These aspects of the context need only be checked when the values are required to be used. The result is NaN.
Instance Attribute Summary
Attributes inherited from Exception
Class Method Summary collapse
Methods inherited from Exception
Constructor Details
This class inherits a constructor from Flt::Num::Exception
Class Method Details
.handle(context, *args) ⇒ Object
360 361 362 |
# File 'lib/flt/num.rb', line 360 def self.handle(context,*args) context.num_class.nan end |