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

Function writeFloat

docs/app/js/sanddance-app.js:113870–113876  ·  view source on GitHub ↗
(buf, value, offset, littleEndian, noAssert)

Source from the content-addressed store, hash-verified

113868 if (offset < 0) throw new RangeError("Index out of range");
113869}
113870function writeFloat(buf, value, offset, littleEndian, noAssert) {
113871 value = +value;
113872 offset = offset >>> 0;
113873 if (!noAssert) checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -340282346638528860000000000000000000000);
113874 ieee754.write(buf, value, offset, littleEndian, 23, 4);
113875 return offset + 4;
113876}
113877Buffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
113878 return writeFloat(this, value, offset, true, noAssert);
113879};

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

checkIEEE754Function · 0.70

Tested by

no test coverage detected