Home
Random
Watchlist
Settings
Log in
About CPCWiki - THE Amstrad CPC encyclopedia!
Disclaimers
Open main menu
Changes
Locomotive BASIC
59 bytes added
,
15:28, 30 December 2018
/* ABS (n) */
==== <code>ABS (n)</code> ====
: Returns the absolute value of n by ignoring the sign value
, that means a negative value will be changed in a positive one
.
: Example
<pre>
PRINT ABS(-
3
67
.
5
98
)
- prints 3
67
.
5
98
</pre>
← Older edit
Newer edit →
HAL6128
205
edits