Exception: Decimal::DivisionImpossible

Inherits:
Exception
  • Object
show all
Defined in:
lib/decimal/decimal.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 Decimal::Exception

Class Method Details

.handle(context, *args) ⇒ Object



137
138
139
# File 'lib/decimal/decimal.rb', line 137

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