Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Overpunch Parser/Formatter

Project description

Extract and generate overpunch (https://en.wikipedia.org/wiki/Signed_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

Project details


Download files

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

Files for overpunch, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size overpunch-1.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page