You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeepMath is a lightweight Arduino library by "Hfiz Amanudeen pallimukku"for performing high-precision decimal and large number arithmetic operations without using floating point types (float or double) or external libraries like sprintf, string, or stringstream.
1
+
# 📐 DeepMath - High Precision Math for Arduino
3
2
4
-
This library is designed for use in memory-limited microcontrollers (such as ESP32-Wroom,ATmega328, ESP32-CAM, etc.) where standard math functions are not reliable for large or precise decimal operations.
3
+
**DeepMath**is a lightweight and dependency-free Arduino library by **Hafiz Amanudeen Pallimukku** for performing **high-precision decimal** and **large-number arithmetic** operations without using `float`, `double`, or complex string-based libraries like `sprintf`, `string`, or `stringstream`.
5
4
6
-
📘 Usage
7
-
cpp
5
+
> Designed especially for memory-constrained microcontrollers like **ESP32-WROOM**, **ESP32-CAM**, **ATmega328**, etc., where native floating point operations are not reliable or precise for large values.
8
6
9
-
#include <DeepMath.h>
10
-
11
-
void setup() {
12
-
Serial.begin(9600);
13
-
14
-
long long num = 1234567890123456789LL;
15
-
16
-
// Convert large number to string
17
-
String re
18
7
---
19
8
20
9
## ✨ Features
21
10
22
-
- Pure logic-based implementation
23
-
- Works with very large integers (`long long`, `unsigned long long`)
24
-
-Supports:
25
-
- Integer to String conversion (up to 20 digits)
26
-
- Decimal point insertion without float
27
-
-Manual power, division, and addition logic
28
-
- Minimal dependencies (`Arduino.h` and `math.h` only)
29
-
- No dynamic memory allocation (`malloc`, `new`, etc.)
11
+
-✅ Pure logic-based implementation (no floating point math)
12
+
-🔢 Works with very large integers (`long long`, `unsigned long long`)
13
+
-🔧 Manual implementations of:
14
+
- Integer-to-string and string-to-integer conversion
15
+
- Decimal point handling
16
+
-Power, division, addition logic
17
+
-🪶 Minimal dependencies (`Arduino.h`, `math.h`)
18
+
-🚫 No dynamic memory (`malloc`, `new`, etc.)
30
19
31
20
---
32
21
33
22
## 🔧 Installation
34
23
35
-
### Method 1: Manually
24
+
### 🔹 Method 1: Manual
36
25
37
-
1. Download or clone this repository:
38
-
2. Move the folder into your Arduino libraries directory:
26
+
1. Download or clone this repository.
27
+
2. Move the folder into your Arduino `libraries` directory.
39
28
40
-
### Method 2: Zip Import
29
+
### 🔹 Method 2: ZIP Import
41
30
42
-
1.Go to Arduino IDE → Sketch → Include Library → Add .ZIP Library.
0 commit comments