Exception: Flt::Num::DivisionImpossible

Inherits:
Exception show all
Defined in:
lib/flt/num.rb

Overview

Cannot perform the division adequately exception.

This occurs and signals invalid-operation if the integer result of a divide-integer or remainder operation had too many digits (would be longer than precision). The result is NaN.

Instance Attribute Summary

Attributes inherited from Exception

#context

Class Method Summary collapse

Methods inherited from Exception

#initialize

Constructor Details

This class inherits a constructor from Flt::Num::Exception

Class Method Details

.handle(context, *args) ⇒ Object



249
250
251
# File 'lib/flt/num.rb', line 249

def self.handle(context,*args)
  context.num_class.nan
end