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.


from numShortener import *

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

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page