Playing around with decimals... different result on PC and android

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.
  • Hi people,

    I am having a hard time making an accurate calculation...Plus the results show different values when I run the application on PC and Android device.

    Though I did found an alternative math method to solve my problem, I still want to learn if there is a way to handle the calculation and show the exact value CORRECTLY.

    What I am trying to do is a simple calculation including some decimals where CF starts acting weird (or that is my lack of knowledge using CF)


    PROBLEM :


    Let's say birth year is "N"

    then "R" = N / 12

    "R" will have 6 digits in total (3 after decimal) for instance "165.667"

    Then "I" = decimal of the "R" ----> I somehow found a way with right$ and left$ commands by converting the values to strigns back and forth few times

    Things are getting difficult after this point.

    Then I want to get the integer of ("I" * 12) after half adjusting the result.


    I appreciate if you help me find a way to reflect the exact value.

Participate now!

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