/elen

Efficient Lexicographic Encoding of Numbers for python

Primary LanguagePythonMIT LicenseMIT

elen

image

image

Documentation Status

Updates

Efficient Lexicographic Encoding of Numbers for python. Based on ELEN algorithm published by Peter Seymour, http://www.zanopha.com/docs/elen.pdf .

Features

  • two-way conversion between ELEN notation and Python decimal.Decimal instance

Usage

>>> from decimal import Decimal >>> import elen >>> elen.decimal(Decimal("3.145")) '=3145-'