marksweston / finance

A library for financial calculations in Ruby
https://rubygems.org/gems/finance
Other
221 stars 91 forks source link

Question About Number Formats #35

Closed akayvanfar closed 8 years ago

akayvanfar commented 9 years ago

Does the XIRR calculation handle both Float and Decimal number formats or is it necessary to feed in one vs the other?

Thanks!

tubedude commented 9 years ago

You can feed float, but the response will be Decimal

akayvanfar commented 9 years ago

sounds like it's better to just always use Decimal then, correct?