Download the PHP package leandro47/simple-math without Composer
On this page you can find all versions of the php package leandro47/simple-math. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download leandro47/simple-math
More information about leandro47/simple-math
Files in leandro47/simple-math
Download leandro47/simple-math
More information about leandro47/simple-math
Files in leandro47/simple-math
Vendor leandro47
Package simple-math
Short Description perform math calculations and format the results
License MIT
Package simple-math
Short Description perform math calculations and format the results
License MIT
Please rate this library. Is it a good library?
Informations about the package simple-math
simple-math 
Makes simple math calculations and format the results.
Type of values
- Number
Installation
Install with composer
Number
Expressions supported
- sum
+ - subtraction
- - divider
/ - multiplication
*
Functions
Use/Examples
Creating a number:
Sum values
Subtraction values
Divider values
You may get an error when you try to divide with zero, that's why that is necessary
use an try catch block with DivisionByZeroError.
Multiplication values
Format values
Precision
If you want to add decimal places just add an extra parameter $precision.
Symbol
You can also add a prefix before the number just add an extra parameter $symbol.
You can add the format when you show the result of some calculation.
or
Licence
All versions of simple-math with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package leandro47/simple-math contains the following files
Loading the files please wait ...