No project description provided
Project description
MercyStudy
Table of Contents
Usage
from MercyStudy import *
dec_convert.bin_float(59.05)
API
dec_convert.bin_float(num, precision=8)
convert a decimal floating-point number to binary
- num <type:float>
- precision <type:int> <default:8>
- return binary-num <type:float>
dec_convert.oct_float(num, precision=8)
convert a decimal floating-point number to octal
- num <type:float>
- precision <type:int> <default:8>
- return octal-num <type:float>
dec_convert.hex_float(num, precision=8)
convert a decimal floating-point number to hexadecimal
- num <type:float>
- precision <type:int> <default:8>
- return hexadecimal-num <type:str>
code_convert.true_to_radix(num)
calculate the inverse of a int num
- num <type:int>
- return inversed binary num <type:str>
code_convert.true_to_complement(num)
calculate the complement of a int num
- num <type:int>
- return complemented binary num <type:str>
Contributing
PRs accepted.
License
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
MercyIdeas-1.0.0a1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for MercyIdeas-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8098f48a3c496acaf8dab0ac82191a12b3a4c6d1478e3337095331230df8438 |
|
MD5 | d99b6a58dc3e5522c7368b11e5fc09cb |
|
BLAKE2b-256 | b874d457b37835ab3445b7060fcc2255602178c78bbe20bd7934a822c5dc9d30 |