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.