Skip to content
/ calc Public

String calculator. Calculate input string with simple expression, for instance 8+96

Notifications You must be signed in to change notification settings

ogarose/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String calculator

It is a package to calculate math expression in string. For instance 65 + 545 Supports only expression with 2 operands and operators +-*/ .

Example

$calculator = new Calc\SimpleCalculator();
$result = $calculator->calculate('85/5');

The result is equal 17

About

String calculator. Calculate input string with simple expression, for instance 8+96

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages