elen

https://img.shields.io/pypi/v/elen.svg https://img.shields.io/travis/rooterkyberian/elen.svg 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-'