Comments (6)
Hello, thank you for your issue. I'll fix it in 1-2 days.
from mathexecutor.
Hi Alexander, thank you, sounds great!
Until then we'll just add an operator "neg" that does return $param * -1 ;-)
As a hint, in my pull request, I did this change in the TokenParser:
self::DIGIT => '[0-9.]',
After that, this worked: (5 + 3) * -1
but every normal - operation failed (no surprise).
I did not dive deeply into you tokenizing, but I see how the parsing might get tricky with the prefixed numbers.
Please let me know when you have a new version out, so we can test it!
Should also be a good real live test for your lib, we're executing quite long and complicated formulas.
Cheers, Anton
from mathexecutor.
Hi Alexander,
any progress on that?
Cheers, Anton
from mathexecutor.
Ping
from mathexecutor.
Resolved
from mathexecutor.
Hi Alexander, great to hear! I'll verify as soon as possible and let you know!
Cheers, Anton
from mathexecutor.
Related Issues (20)
- Should't it throw an exception if a operator is missing? HOT 5
- Use of bcmath functions? HOT 3
- Too many commas in an if-statement doesn't throw an exception HOT 1
- Possible memory leak HOT 3
- Broken formula parsing in v0.6+ HOT 4
- Subtractions in expressions results in error HOT 1
- Token Greater Than Or Equals HOT 2
- Removal of symbolic links HOT 4
- Expression beginning with left bracket and minus
- Negative number in bracket HOT 2
- `If` condition breaks since v2.x HOT 4
- Allow optional parameters in functions HOT 1
- Create aliases ln (for log), lg (for log10) HOT 5
- Prevent cache while executing an expression HOT 5
- Unary Minus results in error when used with non-digits HOT 5
- Double operator fails HOT 3
- php7.3.28 can not use composer to install
- PHP 8.1 support HOT 1
- are MathExecutor support SUM function? HOT 3
- Object Variables HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mathexecutor.