This Typescript / Javascript library converts numbers from builtin number datatype into / from KNX conform two byte floating point representation.
This library is provided as a npm package, so you can simply install it by executing
npm install knxfloat
or include it as a dependency in your package.json.
This library does not have an runtime dependencies, however in order to run tests or transpile it from Typescript to Javascript, you have to install the development dependencies using
npm install
in the root folder of this repository.
Builtin automated tests can be run by executing
npm run test
You can try out this library by using the online KNX float converter
- Tobias Wegner - www.tobiaswegner.de
This software is licensed under the MIT license