Class: Java::JavaMath::BigDecimal

Inherits:
Object
  • Object
show all
Defined in:
lib/other.rb

Overview

JavaMath:.BigDecimal does not premit mathematical operations We convert it to RubyBigDecimal to represent it (if present in the DB) and upon loading from the DB

Instance Method Summary collapse

Instance Method Details

#from_orientObject


294
295
296
# File 'lib/other.rb', line 294

def from_orient
  BigDecimal.new self.to_s
end

#to_fObject


290
291
292
# File 'lib/other.rb', line 290

def to_f
  BigDecimal.new self.to_s 
end