Comments (4)
Hello, fend maintainer here! I've implemented a fix for this in v1.4.8.
from stract.
I did not look into the code, but it seems as if x%y
is interpreted as (x/100)+y
and not as modulo. For modulo one would need x mod y
.
Note that we are using fend for evaluating everything in the calculator.
from stract.
Yea it seems that fend always treats %
as a unit. They have an open issue to also support it as a module operator, but it seems that it might not be trivial to implement in their parser (printfn/fend#265).
I kinda want to label this as a bug as I agree this is not what the user expects. I don't know exactly how we should fix it though. I think we could either (in order of ascending difficulty and flexibility):
- Hot fix: replace all
([\d]+) *% *([\d]+)
with$1 mod $2
. - It seems that the maintainer of fend wants this as well, so we might be able to fix it in their parser and upstream it.
- Write our own calculator.
from stract.
Awesome! Thanks for the heads up
from stract.
Related Issues (20)
- stract.com user agent info is not easily discoverable HOT 1
- Style: the related search showing unnecessary scrolls
- Add node versioning to `package.json`
- Did you mean quality HOT 1
- Open Results in New Tab HOT 2
- add everforest color scheme
- Domain age HOT 4
- specify optic in search query
- compatibility with uBlacklist HOT 1
- Logo design HOT 2
- adding to browser - make instructions easier to find HOT 1
- Add traffic page
- Some pages wrongfully marked as containing ads
- Structure entities around Wikidata items
- media search: Images Videos
- Stackoverflow answers formatting
- Repeating results
- Looking up a search term + the name of a website gives poor results HOT 1
- rankings shouldn't (exclusively) use search params 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 stract.