An open API service indexing awesome lists of open source software.

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.

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.