Comments (6)
Expression
1.
produces an int, should be float
1.
will actually produce a parsing error. Still not the expected behaviour though.
from jitcat.
I'd say this shouldn't be an error, things like 1.
in C++ code are perfectly fine.
Besides it's a common way to tell floating point numbers from integers.
from jitcat.
Yes, I agree 1.
should be parsed as a float.
from jitcat.
This has now been fixed, as well as several other problems with floating point parsing such as .0
and 1e10
from jitcat.
I still managed to break your parser :) try 1.-1
from jitcat.
I still managed to break your parser :) try
1.-1
This one should also be fixed now.
from jitcat.
Related Issues (12)
- Tests fail for expressions that (correctly) evaluate to NAN HOT 2
- Division by zero produces 0 HOT 2
- Segfault on Windows/MSVC in release builds when using a recent checkout of LLVM HOT 8
- Sometimes a lone '.' is parsed as float 0.0
- Segmentation Fault after unit tests have completed on Linux. HOT 1
- Expression<double> gives a compile error HOT 2
- llvm::make_unique() is no longer a thing
- log() calculates log10, not the natural logarithm HOT 1
- Unnecessary if's in CatFunctionCall::execute() HOT 1
- Found abs() being tested instead of tan() HOT 1
- "0 * floatVariable" produces int 0
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 jitcat.