MCPcopy Create free account
hub / github.com/sparkjsdev/spark / floatBitsToUint

Function floatBitsToUint

src/utils.ts:34–37  ·  view source on GitHub ↗
(f: number)

Source from the content-addressed store, hash-verified

32
33// Reinterpret the bits of a float32 as a uint32
34export function floatBitsToUint(f: number): number {
35 f32buffer[0] = f;
36 return u32buffer[0];
37}
38
39// Reinterpret the bits of a uint32 as a float32
40export function uintBitsToFloat(u: number): number {

Callers 1

encodeExtSplatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected