Detect division by zero: Difference between revisions
Added GW-BASIC and MSX Basic
(Added GW-BASIC and MSX Basic) |
|||
Line 249:
ENDIF
ENDPROC</syntaxhighlight>
==={{header|GW-BASIC}}===
The [[#Locomotive_BASIC|Locomotive BASIC]] solution works without any changes.
==={{header|IS-BASIC}}===
Line 287 ⟶ 290:
Division by zero in line 40 </pre>
==={{header|
The [[#Locomotive_BASIC|Locomotive BASIC]] solution works without any changes.
==={{header|PureBasic}}===
PureBasic can be compiled with the [http://www.purebasic.com/documentation/onerror/index.html OnError] library included which gives a way to track program errors without losing speed, doing so gives support for the following functions;
*ErrorAddress()
Line 338 ⟶ 343:
PRINT 3 / 5
PRINT 4 / 0
END
|