-
Notifications
You must be signed in to change notification settings - Fork 0
abs
ffredyk edited this page Jul 23, 2026
·
1 revision
Math
Unary — abs <number>.
abs <number>
Returns the absolute (non-negative) value of a number. abs -5 → 5, abs 3 → 3. Auto-unwraps shared values.
Calls Math.Abs(double). Negative input becomes positive; positive input unchanged; zero unchanged.
abs -5; // 5
abs 3.14; // 3.14
abs 0; // 0
// Distance / magnitude
_delta = abs (_a - _b);
// Error margin
if (abs (_actual - _expected) < 0.001) then {
systemChat "Values match";
};ReadOnly — pure computation. Safe from any scheduler.
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo