mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Updates/fixes to NTSL
- Fixed NTSL division - Added new NTSL math functions - Added changelog information
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
else if(isobject(b) && !isobject(a))
|
||||
RaiseError(new/runtimeError/TypeMismatch("/", a, b))
|
||||
return null
|
||||
if(b==0)
|
||||
if(b==0 || b==null)
|
||||
RaiseError(new/runtimeError/DivisionByZero())
|
||||
return null
|
||||
return a/b
|
||||
@@ -166,4 +166,4 @@
|
||||
//Unary//
|
||||
Minus(a) return -a
|
||||
LogicalNot(a) return !a
|
||||
BitwiseNot(a) return ~a
|
||||
BitwiseNot(a) return ~a
|
||||
|
||||
Reference in New Issue
Block a user