Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1 KB

README.rst

File metadata and controls

40 lines (26 loc) · 1 KB

elen

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-'