PHP Classes

File: src/NXP/Classes/Calculator.php

Recommend this page to a friend!
  Classes of Alexander Kiryukhin  >  PHP Math Expression Evaluator  >  src/NXP/Classes/Calculator.php  
File: src/NXP/Classes/Calculator.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Math Expression Evaluator
Parse and evaluate strings with math expressions
Author: By
Last change: Support unlimited args for min, max default funcs. (#106)

* Support unlimited args for min, max default funcs.

Default functions max and min were requiring 2 arguments strictly. Now they supoort unlimited args, same as php's min, max funcs.

* Improved functions: support unlimited parameters (see min, max funcs), optional parameters (see round func), parameters with types (see round func, throws IncorrectFunctionParameterException on unmatched type, union types and intersection types not supported because of min php level! there is a todo for this, to support them later @see CustomFunction@execute) Also added unittests for improvements.

* Run php-cs-fixer fix
Date: 4 months ago
Size: 3,116 bytes

You need to be a registered user and login to get this file.

1,601,891 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

For more information send a message to info at phpclasses dot org.