in2pos

1.0.2 • Public • Published

in2pos

Usage:

const in2pos = require('in2pos');
 
//calculate a expression;
in2pos.CalcPosfix(In2Pos('51/2/4=')); //6.375
 
//convert infix to posfix;
in2pos.In2Pos('1-2*3'); //[1, 2, 3, "*", "-"]
 
//receive a posfix expression and calculate;
in2pos.CalcPosfix([1, 2, 3, "*", "-"]); // -5

Readme

Keywords

Package Sidebar

Install

npm i in2pos

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

18.5 kB

Total Files

8

Last publish

Collaborators

  • wllr9505