Indications are, ABS in SmileBasic V1 is identical to that in V2.


ABS(numerical value) returns the 'absolute value' of the number given. If the given number is zero or positive, the result is the same as the given number; if the given number is negative, the result is the given number with the sign swapped (i.e. made positive, with the same magnitude, or 'distance from zero'). The result of ABS is never negative.

Except for a bug. ABS(&H80000) will give the result -0.


Indications are, ABS in SmileBasic V3 is identical to that in V2, except hopefully, the "-0" bug is fixed.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.