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

Function writeDouble

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

Source from the content-addressed store, hash-verified

113881 return writeFloat(this, value, offset, false, noAssert);
113882};
113883function writeDouble(buf, value, offset, littleEndian, noAssert) {
113884 value = +value;
113885 offset = offset >>> 0;
113886 if (!noAssert) checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);
113887 ieee754.write(buf, value, offset, littleEndian, 52, 8);
113888 return offset + 8;
113889}
113890Buffer.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
113891 return writeDouble(this, value, offset, true, noAssert);
113892};

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

checkIEEE754Function · 0.70

Tested by

no test coverage detected