Skip to main content

This is math base

Project description

Package of simple mathematical operations

Description

This package provides simple math functions for integer and floating-point operations. Includes functions for adding, subtracting, multiplying and dividing both integers and floating point numbers.

Installation

You can install this package with pip:

pip install FrappePy

Use Functions on integers Addition python

from FrappePy import add_int

result = add_int(5, 3)
print(result) # Output: 8

Subtraction

Copy the code
from FrappePy import minus_int

result = minus_int(5, 3)
print(result) # Output: 2

Multiplication

Copy the code
from FrappePy import multiply_int

result = multiply_int(5, 3)
print(result) # Output: 15

Division

Copy the code
from FrappePy import divide_int

result = divide_int(5, 3)
print(result) # Output: 1.6666666666666667

Functions on floating-point numbers Addition Copy the code

from FrappePy import add_float
result = add_float(5.0, 3.0)
print(result) # Output: 8.0```

Subtraction
Copy the code
```python
from FrappePy import minus_float
result = minus_float(5.0, 3.0)
print(result) # Output: 2.0

Multiplication

Copy the code
from FrappePy import multiply_float

result = multiply_float(5.0, 3.0)
print(result) # Output: 15.0

Division

Copy the code
from FrappePy import divide_float

result = divide_float(5.0, 3.0)
print(result) # Output: 1.6666666666666667```

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

frappepy-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file frappepy-1.0.0.tar.gz.

File metadata

  • Download URL: frappepy-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for frappepy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fbe52fef1b35d1e4c06cc3b74fa9fd8043306cc688d7e7b4b5f3971b63b0c4ca
MD5 15da590b767129603f81598ff1c25813
BLAKE2b-256 e9d3066d060f26c52566442b31f8e070738f8749555d03dfc8fc51816861e820

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