ParentFull threadbenttoothpaste·The checks could be expensive though, more expensive than the gains from this optimization. Often it is better to let the calculation proceed and use isnan to check the final result.View on HN