I suggest you ...

[Bug]!calc-Plugin is not working correctly

If I type !calc 5/9 it gives 5/9=0 out, while the correct result is 0.55...
Also, it always rounds downwards, while it should round at .5 or higher upwards.

9 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    W4mp3W4mp3 shared this idea  ·   ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • W4mp3W4mp3 commented  · 

        Thats how I did it later, but for non-programmer it is very confusing (well, I do know what a Integer and what a Float is but others were complaining about it, too).

      • EckankarAdminEckankar (Admin, Dynamic Skype Bot) commented  · 

        This is actually how I intended it.
        When you divide two integers, you perform integer division, which throws away any remainder.
        I can see how this is confusing, though, so perhaps I should move integral division to //, and let / be float division.
        For now, you can use 5.0/9 to bypass it.

      Feedback and Knowledge Base