• Resolved Janke

    (@soldier99)


    Hi,
    Is there a way to return rounding with two decimals? Currently our formula is like this here:

    round(703 * (%pounds% / (%tollid_kokku% * %tollid_kokku%)))

    It returns calulation sum as 23 but i would like to show it with two decimalt. So instead of 23 it should show 22.95

    Any help would be appreciated.

    J.

    • This topic was modified 7 years, 8 months ago by Janke.
Viewing 3 replies - 1 through 3 (of 3 total)
  • This should work:

    round( (703 * (%pounds% / (%tollid_kokku% * %tollid_kokku%))) * 100) / 100

    Regards,
    Mason

    Thread Starter Janke

    (@soldier99)

    Thanks 🙂 Worked as a charm

    Plugin Contributor christiechirinos

    (@christiechirinos)

    Hey mason3t, thanks for helping out here 🙂 feel free to reach out via our website and reference this thread, I’d love to give you a discount code for a future purchase for your trouble.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Calculation: round with two decimals’ is closed to new replies.