Skip to main content

Round Number

Project description

My Package

A sample Python package.

Installation

You can install the package using pip:

pip install round_utils

Usage

Here is an example of how to use the package:

from roundr import round_utils

print(round_utils(32.56, 1))  # 32.6
print(round_utils(349.5))  # 350
print(round_utils(6.54, 1))  # 6.5
print(round_utils(6.54))  # 7.0
print(round_utils('6.55'))  # 7.0
print(round_utils(6.56, '1'))  # 6.6
print(round_utils(6, 'e'))  # "Invalid input, try again!"
print(round_utils('r', 3))  # "Invalid input, try again!"

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

roundr-1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roundr-1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file roundr-1.2.tar.gz.

File metadata

  • Download URL: roundr-1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for roundr-1.2.tar.gz
Algorithm Hash digest
SHA256 3efe49cbac4392945c17540d391d289ff90d4c4bfce90026344afb0b23db23db
MD5 0c59641f975ff647da5bd367ca4aec50
BLAKE2b-256 8178a78ace8242004955f75ce344fee688cb32d3710c7840b537e1ca171323b5

See more details on using hashes here.

File details

Details for the file roundr-1.2-py3-none-any.whl.

File metadata

  • Download URL: roundr-1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for roundr-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 552f03026214e1c8c426f6f96e107a3b037bd32d47cffac72ae5d1f8c66e7099
MD5 13ef6c559156e8e19506e6c29c832096
BLAKE2b-256 e5de06ffa256004efb3fed0b0214d612c752674d668535f74c9c205134025b12

See more details on using hashes here.

Supported by

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