Updates/fixes to NTSL

- Fixed NTSL division
  - Added new NTSL math functions
  - Added changelog information
This commit is contained in:
TedStudley
2015-01-03 17:03:23 -08:00
parent b94fcf06b3
commit 777a2800a3
5 changed files with 39 additions and 3 deletions
@@ -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