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

Function fx_Math_ceil

xs/sources/xsMath.c:197–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void fx_Math_ceil(txMachine* the)
198{
199 mxNanResultIfNoArg;
200 if (XS_INTEGER_KIND == mxArgv(0)->kind) {
201 mxResult->kind = XS_INTEGER_KIND;
202 mxResult->value.integer = mxArgv(0)->value.integer;
203 return;
204 }
205 fxToNumber(the, mxArgv(0));
206 mxResult->kind = XS_NUMBER_KIND;
207 mxResult->value.number = c_ceil(mxArgv(0)->value.number);
208 fx_Math_toInteger(the);
209}
210
211void fx_Math_clz32(txMachine* the)
212{

Callers

nothing calls this directly

Calls 2

fxToNumberFunction · 0.85
fx_Math_toIntegerFunction · 0.85

Tested by

no test coverage detected