Skip to main content

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

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 Distribution

MercyIdeas-1.0.0a1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

MercyIdeas-1.0.0a1-py3-none-any.whl (5.7 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