simple problem ou beug??

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • This is due to floating-point math (decimal places) are stored in a not-completely accurate way. You'll get the same problem in other coding languages.

    There's an explanation Please login to see this link..

    Basically, if you divide 1 by 9, you get 0.1111..., multiply by 9, you get 0.9999... which doesn't match 1.0, and it's the same sort of idea here. The computer doesn't store the number exactly, it stores the closest it can get, and normally you won't notice the difference, because it's so tiny.

    In this case though, you've done several tiny inaccuracies on top of each other, that you won't see easily, so the end result is something like 1.60000000000001 or 1.599999999999 or something, which does not exactly equal 1.6, and anything displaying it will just round it... but internally, that tiny difference means it does not equal 1.6.

    Please login to see this attachment.

    Try something where you check a tiny range around expected numbers; alternatively, store it as integers, no decimal places, and divide it by 10.0 when displaying.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!