Skip to main content

Converts between Microchip's an575 float format and IEEE-754.

Project description

pyAN575

Converts between Microchip's an575 float format and IEEE-754.

Usage

from pyAN575.__init__ import An575Float, Ieee754Float

an_from_float = An575Float.from_float(3.141592618)
print(float(an_from_float) == 3.141592618) # True

raw_an = An575Float.from_buffer_copy(b'850beb2a')
print(float(raw_an) == 69.95930480957031) # True

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyAN575, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pyAN575-0.1.2-py3-none-any.whl (2.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyAN575-0.1.2.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page