DEV Community

[Comment from a deleted post]
Collapse
 
halcaponey_35 profile image
halcaponey

A way to configure what a division by zero outputs
I mean some people think it should throw an exception,
Some people think it should be one
Others zero

Maybe an exception by default unless a second argument is specified for the division method, in that case return the second argument

Good luck with your library

Collapse
 
stereobooster profile image
stereobooster

one? I saw post where they showed that zero is sound option, but first time I hear about one.