MCPcopy Create free account
hub / github.com/TruthHun/BookStack / writeFloat

Function writeFloat

static/word2md/mammoth.browser.js:11189–11195  ·  view source on GitHub ↗
(buf, value, offset, littleEndian, noAssert)

Source from the content-addressed store, hash-verified

11187}
11188
11189function writeFloat (buf, value, offset, littleEndian, noAssert) {
11190 if (!noAssert) {
11191 checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
11192 }
11193 ieee754.write(buf, value, offset, littleEndian, 23, 4)
11194 return offset + 4
11195}
11196
11197Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
11198 return writeFloat(this, value, offset, true, noAssert)

Callers 1

mammoth.browser.jsFile · 0.70

Calls 1

checkIEEE754Function · 0.70

Tested by

no test coverage detected