No project description provided
Project description
MercyIdeas
Table of Contents
Usage
pip install MercyIdeas
from MercyIdeas import *
MercyStudy.dec_convert.bin_float(59.05)
API
Package:MercyStudy
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>
mercy_math.is_prime(*args)
check if it is a prime num
- num in args <type:int>
- return <type:bool>
mercy_math.get_fib(index=8)
get a list of fibonacci number
- index: len of the fibonacci number list <type:int>
- return a list of fibonacci number <type:list>
Contributing
PRs accepted.
Updates
1.0.0a2:
- 1.fix bugs in MercyStudy.code_convert.py
- 2.rewrite README.md
1.0.0a1:
- a first try
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for MercyIdeas-1.0.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa892191c189d781ddf3466f7f95a2d4f18770979169a9c250a09c727378ab67 |
|
MD5 | ed978e8c4554d057019a3613ba9a61b8 |
|
BLAKE2b-256 | cfbb116032434eceb0f8fcdbbe9681685432c1766711d5056c96873dfad1f82b |