Skip to content

truveris/overpunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overpunch Parser/Formatter

Extract and generate overpunch formatted numbers.

Examples:

>>> import overpunch
>>> overpunch.format(123.45)
'1234E'
>>> overpunch.extract("1234E")
Decimal('123.45')

Requirements:

  • Python 2.7+ or Python 3

Tests:

Without coverage:

$ nosetests

With coverage:

$ nosetests --with-coverage --cover-package=overpunch