• Resolved G. Manucharyan

    (@g-manucharyan)


    Hi a have a problem with my calculator. It’s not working divide with 0.695. Left calculator working fine and it’s salary calculator, right calculator is for reversed calculator of salary.

    For some calculated numbers it’s giving an error. For example 210000,220000,230000,240000,250000,420000 and etc. I always tested the code before dividing and it’s working fine for examples numbers.

    Please help me to resolve the problem

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @g-manucharyan,

    I’m sorry, but that’s not true, for example, using the one of your values: 210000
    and selecting the option: “???, ????? ?? 1974?. ????”

    The condition that is satisfied in the equation is:

    
    if (0.025 == 0.025 && 210000 > 110750 && 210000 <= 354000)
    return ((210000 - 7500 + 1000) / 0.695);
    

    So, the result of the equation ((210000 – 7500 + 1000) / 0.695) is: 292805.75539568346

    I’ve used the calculator for testing the mathematical operation, and this is the result:

    as you can see there is not a mathematical error with the plugin, both results coincide.

    Best regards.

    Thread Starter G. Manucharyan

    (@g-manucharyan)

    You need to input value of the first calculator last calculated value to the second calculator and get in the second calculator last field the first field input of the first calculator

    Plugin Author codepeople

    (@codepeople)

    Hello @g-manucharyan,

    You are requesting that I debug all your algorithm to validate if it is correct or not.

    I’m sorry, but I cannot offer you this service for free.

    If you want, you can describe all your equations step by step with a possible case of use, similar to my previous ticket (where I’ve evaluated your equations manually to demonstrate that there is not an issue in the mathematical operation using the 0.695 as an operand), and I could help you to detect the error, but please, do not ask me to debug all your code.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error with multiplication with 0.965’ is closed to new replies.