Jump to content

Detect division by zero: Difference between revisions

m (→‎{{header|RPL}}: highlighted synthax)
Line 1,324:
 
=={{header|langur}}==
<syntaxhighlight lang="langur">val .div = ffn(.x, .y) {
[.x / .y, true]
catch {
if matching(_err'msg -> re/division by 0/, _err["msg"]) {
[0, false]
} else {
1,007

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.