MCPcopy Create free account
hub / github.com/DCurrent/openbor / math_abs

Function math_abs

engine/source/openborscript/math.c:649–700  ·  view source on GitHub ↗

* Caskey, Damon V. * 2026-06-08 * * Get absolute value of a variant as an integer * or decimal. Integer inputs stay in integer * space when possible, with promotion to 64-bit * or unsigned 64-bit carriers when needed. * * INT64_MIN is returned as VT_UINTEGER64 because * its positive magnitude cannot fit signed 64-bit. * * abs(-5) = 5 * abs(5) = 5 */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Tested by

no test coverage detected