Installation

npm i @usefoundry/tools-utils-calculator

Functions

calculate

Evaluates a mathematical expression and returns the result as string. Always use it do any math

Properties:

  • expression (string): The mathematical expression to evaluate