Added abs(x) stock
This commit is contained in:
1 parent
729932476b
commit
227c13d12c
1 file changed
+6
-1
@@ -38,4 +38,9 @@ native sqroot(value);
|
||||
native time(&hour=0,&minute=0,&second=0);
|
||||
native date(&year=0,&month=0,&day=0);
|
||||
|
||||
native tickcount(&granularity=0);
|
||||
native tickcount(&granularity=0);
|
||||
|
||||
stock abs(x)
|
||||
{
|
||||
return x > 0 ? x : -x;
|
||||
}
|
||||
Reference in new issue
Block a user