• Resolved jaanahelminen

    (@jaanahelminen)


    Hi. I have a tiny problem that is affecting all my equations. I would need the tool to calculate with decimals, but apparently it is not doing so.
    For example: 100 * 0,453 should equal to 45,3. But the calculator rounds it up to 45.
    And yes, I have inserted the PREC(x, 2) but it only gives me an answer 45,00.
    And yes, I have tried with dots. And I have chancged the settings to understans commas as the separators.
    Any other ideas? I’m getting desperate…
    Thanks in advance!

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

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @jaanahelminen

    Thank you very much for using our plugin. I tested your form, and you are using the PREC operation without the second parameter:

    Ex. prec(fieldname12-fieldname13-fieldname7)

    If you use the PREC operation without the second parameter, the plugin rounds the value to an integer number.

    If you want the result with two decimal places, the correct one would be:

    prec(fieldname12-fieldname13-fieldname7, 2)

    This problem is present in all your equations.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘I would need decimals in a simple equation in CFF’ is closed to new replies.