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


Download files

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

Source Distribution

pyAN575-0.1.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyAN575-0.1.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pyAN575-0.1.2.tar.gz.

File metadata

  • Download URL: pyAN575-0.1.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for pyAN575-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0187ea7e068f3b952690d08951317c801503810abc26829981e06b56da16151d
MD5 4bcd2dbfd6e082552d1cd633d02d82d7
BLAKE2b-256 6145bb47ee42f7338cac5651fb39c5b2fb9158d7a1866840e553ab0626b225ad

See more details on using hashes here.

File details

Details for the file pyAN575-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyAN575-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for pyAN575-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4129f14cad580600dd6dbc1ac9c78c349c412407aef254606c3273d55547ef7
MD5 63c1b95ce5f241a1da132ef4744c85a6
BLAKE2b-256 44b09b140eddf0fc50270442d4a9ac1e103b8ed68e0bbd3f85155912d59709a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page