A simple temperature conversion package
Project description
Degrees converter
Simple library that converts temperature from one unit to another one(e.g. from Celsius to Fahrenheit).
Every method of the class Converter returns a float rounded to the second decimal figure.
Usage
Create an instance of the class Converter:
conv = Converter()
and then call the methods of the instance with an int or a float value:
print(conv.celFah(0))
# output: 32.0
The methods can accept a string as argument if it's still a number:
print(conv.celFah("0"))
# output: 32.0
print(conv.celFah("zero"))
# output: Couldn't convert string to float.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for degreesconversion-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bdac009e7b8e7a1712b1da2e3800b0cb67ccceb362a1dcab7061837e73b6c56 |
|
MD5 | 4ee914d381e2b85a95802d4448adca30 |
|
BLAKE2b-256 | 29ed0482f536df08b45730264504e3a88a44f6fad7f381dcff2e70589ca8097b |