计算库(整合decimal)
Project description
强大的计算工具(整合decimal)
解决de问题
- 使用decimal库,防止0.1+0.2=0.30...4的局面
- 每个方法皆可输入多个数字,拒绝addition(1, addition(2, 3))
多功能
- 额外添加StringsCalculator
调用方法
from lsc_calculator import *
"""
nc: 计算数字运算的实例
addition : 加法
subtraction : 减法
multiplication : 乘法
division : 除法
power : 乘方
factorial : 阶乘
sqrt : 开根号
returned_type : 返回值类型
"""
print(nc().addition(1, 2, 3, 4))
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 Distribution
lsc_calculator-1.0.1.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lsc_calculator-1.0.1.tar.gz.
File metadata
- Download URL: lsc_calculator-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcdaa551a4922b92f9084d5a3010d7de3e9a375a62c6f345c7c30f8a0f0fc88d
|
|
| MD5 |
cefc4aceb0f029a2bb17e5aefbfe1fe5
|
|
| BLAKE2b-256 |
f619d25109effa009439caa5261cb2505ed08c5b17f948b8c367ec0e22947868
|
File details
Details for the file lsc_calculator-1.0.1-py3-none-any.whl.
File metadata
- Download URL: lsc_calculator-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9f2390d36d2e4181f4c11f2846304cbc5062d8a92a8408f6244c6a5708566b9
|
|
| MD5 |
5addc0b797b24d354dbcbb3a4c7ceb25
|
|
| BLAKE2b-256 |
6723fceef0c834a20a87deea0f9ae00637dd7896a6f349d93b55cb35fe7bfbe1
|