dentaku
dentaku copied to clipboard
Cast nil to zero?
Excel seems to treat null values as zero for the purposes of arithmetic. Dentaku does not, it raises a Dentaku::ArgumentError
.
![Screen Shot 2021-07-12 at 17 37 53](https://user-images.githubusercontent.com/71686/125372442-f2bb4e00-e337-11eb-9803-5abd8c31797d.png)
![Screen Shot 2021-07-12 at 17 37 58](https://user-images.githubusercontent.com/71686/125372434-efc05d80-e337-11eb-8081-601f20548101.png)
Would you accept a PR to this behavior to match Excel? It would be a pretty consequential change, so perhaps behind a flag?
similar motivation to #18