https://github.com/tiaansu/pawn-big-numbers
https://github.com/tiaansu/pawn-big-numbers
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tiaansu/pawn-big-numbers
- Owner: Tiaansu
- License: mit
- Created: 2023-07-09T06:36:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T10:12:38.000Z (almost 2 years ago)
- Last Synced: 2025-01-06T06:43:39.800Z (5 months ago)
- Language: C++
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pawn Big Numbers
### Description
This plugin is made for my own project gamemode that will use larger amount of numbers that 32 bit systems can't handle (overflow).### Usage
> **Note**
> The numbers are supposedly to be a string in order for this to work.- BigNumber_AddFloatNumber(const num1[], const num2[], output[], len = sizeof(output))
- This native will add two floating point numbers.
- BigNumber_FormatFloatNumber(const number[], const delimiter[] = ",", output[], len = sizeof(output))
- This native will format floating point numbers (separate with delimiter)- bool:BigNumber_IsFloatNumberGreater(const num1[], const num2[])
- This native will compare two floating point numbers.- BigNumber_AddIntNumber(const num1[], const num2[], output[], len = sizeof(output))
- This native will add two int number.- BigNumber_FormatIntNumber(const number[], const delimiter[] = ",", output[], len = sizeof(output))
- This native will format whole number (separate with delimiter)- bool:BigNumber_IsIntNumberGreater(const num1[], const num2[])
- This native will compare two whole numbers.#### custom functions
- BigNumber_AddNumber(const num1[], const num2[], bool:isFloat)
- This function will add two passed value and check if the **isFloat** parameter is set to true then it will use **BigNumber_AddFloatNumber** otherwise **BigNumber_AddIntNumber**.- BigNumber_FormatNumber(const number[], const delimiter[] = ",", bool:isFloat)
- This function will format passed value and check if the **isFloat** parameter is set to true then it will use **BigNumber_FormatFloatNumber** otherwise **BigNumber_FormatIntNumber**- bool:BigNumber_IsGreater(const num1[], const num2[], bool:isFloat)
- This function will compare two passed value and check if the **isFloat** parameter is set to true then it will use **BigNumber_IsFloatNumberGreater** otherwise **BigNumber_IsIntNumberGreater**