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

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

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

Uploaded Python 3

File details

Details for the file MercyIdeas-1.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: MercyIdeas-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for MercyIdeas-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa892191c189d781ddf3466f7f95a2d4f18770979169a9c250a09c727378ab67
MD5 ed978e8c4554d057019a3613ba9a61b8
BLAKE2b-256 cfbb116032434eceb0f8fcdbbe9681685432c1766711d5056c96873dfad1f82b

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