https://github.com/johnlouge/lua-ieee754
A short purely Lua function for mostly accurate conversion of floating point numbers into their binary representation. Supports from half to double-precision floating point, and loosely extended precision.
https://github.com/johnlouge/lua-ieee754
converter ieee754 lua module
Last synced: over 1 year ago
JSON representation
A short purely Lua function for mostly accurate conversion of floating point numbers into their binary representation. Supports from half to double-precision floating point, and loosely extended precision.
- Host: GitHub
- URL: https://github.com/johnlouge/lua-ieee754
- Owner: johnlouge
- License: mit
- Created: 2024-09-01T20:02:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T16:32:07.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T20:00:15.279Z (over 1 year ago)
- Topics: converter, ieee754, lua, module
- Language: Lua
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lua floating point to IEEE-754 binary representation converter
The repository title and the README title says it all. Includes one function that is returned as per a required Lua script which can be used to return a binary of string type that converts according to IEEE-754 standard.
This function also does not use any external libraries besides ones that already exist.
If there are any errors or inaccuracies comparative to the regular IEEE-754 format, @ me.
2024 John Louge. Licensed under MIT License. So do anything.