Skip to main content

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

MIT

Project details


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

MercyIdeas-1.0.0a2-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

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