Content deleted Content added
Make 1/0 show error instead of infinity per User:Hare |
Round to reduce noticability of floating point error Tag: Reverted |
||
Line 5:
local function getDisplay()
-- Normal calculators don't display "Infinity" when dividing by 0.
-- Round to 13 digits to reduce binary float issues
return 'round(iffinite(ifzero(displayY,x,y),ifzero(displayY,x,y),nan),13)'
end
|