Comments (1)
I can see the advantage of supporting bigdecimal, but unfortunately there's not a clean way to integrate it into the library. Doing so would involve either moving all numeric calculation from float64
to their bigdecimal equivalent, or costing even more in type checking for just about every operator.
I've been toying with some concepts that may allow users to select what kind of numeric representation they want in an expression, but it's a far-future kind of thing. The trade-offs just aren't worth it right now, sorry!
from govaluate.
Related Issues (20)
- Accessor character . is recognizaed as float. HOT 3
- How to use regular expressions?
- cannot compare string with date format
- function in Ternary operator gets executed
- The precision of float64 is lost
- How to implement output the current time HOT 1
- How to get the parameter that trigger the EvaluableExpression?
- Is there any way to setup a regex matcher for variable?
- It fails to parse scientific notations in the expression HOT 1
- If there is an syntax definition file by antrl4?
- [bug]
- Can the expression support arrays or slices as input parameters?
- A govaluate fork from Casbin is welcoming PRs
- Facing Issue with Govaluate Custom functions HOT 1
- 🏷️ A govaluate alternative: expr-lang
- Fails to evaluate negative logical expressions HOT 1
- Way to re-evaluate once parameters have been parsed HOT 1
- Case Insensitive check needed for string comparison during expression evaluation
- Facing issue with the custom function HOT 1
- Variable names starting with underscores
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 govaluate.