numo-narray icon indicating copy to clipboard operation
numo-narray copied to clipboard

Multiplying by BigDecimal

Open dvisockas opened this issue 1 year ago • 0 comments

Hey,

I ran into an issue that Numo::SFloat.cast([1]) * BigDecimal(1) raises an NoMethodError: in '*': undefined method 'cast' for nil:NilClass (NoMethodError)

Is this expected or is a PR welcome to support multiplication by types that implement #to_f method (which in the end solves the problem)?

dvisockas avatar Sep 13 '22 16:09 dvisockas