Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
shared void run() {
|
||||
|
||||
//integers divided by zero throw an exception
|
||||
try {
|
||||
value a = 1 / 0;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
//floats divided by zero produce infinity
|
||||
print(1.0 / 0 == infinity then "division by zero!" else "not division by zero!");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue