Hullaballoonatic
05/03/2019, 11:56 PMDouble::div
? i'd like for it to return 0.0
when dividing by 0.0
in this scopenfrankel
05/04/2019, 12:13 AMsafeDiv
method
without the benefit of an operatorHullaballoonatic
05/04/2019, 12:14 AMnfrankel
05/04/2019, 12:17 AMHullaballoonatic
05/04/2019, 12:45 AMnfrankel
05/04/2019, 3:13 AMDouble
a function div()
and you want to change its behavior
this is not possible...
unless you create your own subclass of Double
and it’s finalkarelpeeters
05/04/2019, 6:43 AM