Skip to main content

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.

Source Distribution

overpunch-1.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file overpunch-1.1.tar.gz.

File metadata

  • Download URL: overpunch-1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for overpunch-1.1.tar.gz
Algorithm Hash digest
SHA256 748d262cf3e164bd817b5d459ab998c44a865d24a4a48dfc049fc99d42f98401
MD5 9de2347e925832c0d2805f87ec713faf
BLAKE2b-256 903495950495823d9f2ca0e36e5a100caed1a2dbdcff338e7c53fc457a1769a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page