Red Packets Split Algorithm
Project description
RedPackets Split & Return split_list if succeed & Raise Exception if failed
Installation
pip install redpackets
Usage
import redpackets # Redpackets Split redpackets.split_dollar(total, num, min=0.01) redpackets.split_cent(total, num, min=1) # cent=False equals split_dollar # cent=True equals split_cent redpackets.split(total, num, min=None, cent=False) # Exchange Cent & Dollar redpackets.cent(dollar, rate=100, cast_func=int) redpackets.dollar(cent, rate=100, cast_func=float) # Mul & Div redpackets.mul(multiplicand, multiplicator, cast_func=float) redpackets.div(dividend, divisor, cast_func=float)
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
redpackets-1.0.6.tar.gz
(2.9 kB
view details)
Built Distribution
redpackets-1.0.6-py2.7.egg
(6.1 kB
view details)
File details
Details for the file redpackets-1.0.6.tar.gz
.
File metadata
- Download URL: redpackets-1.0.6.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c62fd4b1f0c49cd7e8ba1696ea6990651d722f99c166c91599884b0a0d35b0f |
|
MD5 | 7cf8df5a465210757134ec6486a75bae |
|
BLAKE2b-256 | 69cd9f741167a9b8e101bd84d7532b5bd49eae8b77e0bd90f92deeb461192e89 |
File details
Details for the file redpackets-1.0.6-py2.7.egg
.
File metadata
- Download URL: redpackets-1.0.6-py2.7.egg
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da67b4181d6af5e93ebdbf6806ba5aa116f8e591975a442aae11cb8dddd4cd8 |
|
MD5 | ec4c6aa4dd2af00d6f400f312ff46475 |
|
BLAKE2b-256 | 18cd26a83d4a5889ac62028db659ab1011f2941b53b356cef3a96a4b870921a6 |