User Details
User Details
- User Since
- Jul 23 2017, 12:31 AM (354 w, 4 d)
- Availability
- Available
Oct 23 2017
Oct 23 2017
peterstadler added a comment to D6845: Better Rounding.
I did not do any more work as I do not know, what is the preferred way. I would see three options:
- Leave it as it is: use Javascript's internal functions (if qalculate is not present, else use that). Then I would suggest the above patch (or similar) to round to less digits to avoid some rounding problems.
- Make qalculate a dependency and always use that.
- Do exact calculations for floating point numbers (convert them to base10-fractions. Then all calculations without functions like sin, log, … are integer calculations, which can be done exactly; in the end put a point at the right place in the integer). Then qalculate would not be a dependency, but some functionality of qalculate would be implemented here.
Jul 24 2017
Jul 24 2017
peterstadler added a comment to D6845: Better Rounding.
Although this example would work (the result is 0.0000333333333), I see your point. I've been wrong: 1/30000000000000 returns 0 with this modification.
peterstadler updated the diff for D6845: Better Rounding.
Jul 23 2017
Jul 23 2017
peterstadler updated the summary of D6845: Better Rounding.