Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.2 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.2 KB

float16

NPM version build status Test coverage David deps npm download

Encode and decode float16

Installation

$ npm install float16

Example

const { byteToFloat16, float16ToByte } = require('float16');

byteToFloat16(0x3c00)).toBe(1);
byteToFloat16(1)).toBe(0x3c00);

License

MIT