MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fx_Math_abs

Function fx_Math_abs

xs/sources/xsMath.c:124–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124void fx_Math_abs(txMachine* the)
125{
126 mxNanResultIfNoArg;
127 fxToNumber(the, mxArgv(0));
128 mxResult->kind = XS_NUMBER_KIND;
129 mxResult->value.number = c_fabs(mxArgv(0)->value.number);
130}
131
132void fx_Math_acos(txMachine* the)
133{

Callers

nothing calls this directly

Calls 1

fxToNumberFunction · 0.85

Tested by

no test coverage detected