Skip to main content

Shortens your numbers

Project description

This module shortens numbers to floats given to function within. All you need to do is give it the number and the number of letters, and it will return them.

Example:

from numShortener import *

print shortenNum(123, 1) >>> 123.00 print shortenNum(10**4, 2) >> 10.00Th

Project details


Supported by

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