peterstadler (Peter Stadler)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Jul 23 2017, 12:31 AM (354 w, 4 d)
Availability
Available

Recent Activity

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:

  1. 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.
  2. Make qalculate a dependency and always use that.
  3. 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.
Oct 23 2017, 10:50 AM

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.

Jul 24 2017, 3:19 PM
peterstadler updated the diff for D6845: Better Rounding.
Jul 24 2017, 3:15 PM

Jul 23 2017

peterstadler updated the summary of D6845: Better Rounding.
Jul 23 2017, 1:03 AM
peterstadler added a reviewer for D6845: Better Rounding: Plasma: Workspaces.
Jul 23 2017, 1:02 AM
peterstadler created D6845: Better Rounding.
Jul 23 2017, 12:59 AM