1.0.27 • Published 3 years ago

ieee754-hex v1.0.27

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

按ieee754标准进行10进制和16进制的互相转换

import { hexIeee754_32ToNum, numToIeee754_32Hex } from "ieee754-hex";

console.log(numToIeee754_32Hex(20.5)); // [ '41', 'A4', '00', '00' ]

console.log(hexIeee754_32ToNum([ '41', 'A4', '00', '00' ])); // 20.5
1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago