You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@adailey14 , I was able to solve this issue adding an intermediary variable to the NVP ( #30 ) calculation. I haven't tested it much, but it preserves the original array: tubedude@412118c
x = [1,2,3] # => [1, 2, 3]
x.npv(1.5) # =>DecNum('2.28')
x # => [1, 2, 3]
the NPV calculation (and probably others) have unexpected side effects on the input array. It will turn all numbers in the input array into DecNums.
Example:
This example is from the rails console using ruby 2.0.0-p353 and rails 3.2.13
The text was updated successfully, but these errors were encountered: