UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

11 lines 608 B
/** * Converts an integer to easily readable binary string representation * @example 1024 -> "00000000 00000000 00000100 00000000" * @example -1 -> "11111111 11111111 11111111 11111111" * @param {number} input_value * @param {string} [byte_separator] insert this string between each group of 8 bits, defaults to a space * @param {number} [bit_count] how many bits to actually render, cropped on the LSB * @returns {string} */ export function int32_to_binary_string(input_value: number, byte_separator?: string, bit_count?: number): string; //# sourceMappingURL=int32_to_binary_string.d.ts.map