MCPcopy Create free account
hub / github.com/microsoft/SandDance / fp64ify

Function fp64ify

docs/app/js/sanddance-app.js:68901–68909  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

68899parcelHelpers.export(exports, "fp64LowPart", ()=>fp64LowPart);
68900parcelHelpers.export(exports, "fp64ifyMatrix4", ()=>fp64ifyMatrix4);
68901function fp64ify(a) {
68902 var out = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
68903 var startIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
68904 var hiPart = Math.fround(a);
68905 var loPart = a - hiPart;
68906 out[startIndex] = hiPart;
68907 out[startIndex + 1] = loPart;
68908 return out;
68909}
68910function fp64LowPart(a) {
68911 return a - Math.fround(a);
68912}

Callers 1

fp64ifyMatrix4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected