RosettaCodeData/Task/Detect-division-by-zero/Jq/detect-division-by-zero-2.jq

2 lines
70 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
try div(3;0) catch if "NaN" then "div by 0 error detected" else . end