KAPOW

Would you like to react to this message? Create an account in a few clicks or log in to continue.
KAPOW

Welcome to the Kapow forum. Here you can get help, use your skills to help others and enjoy hanging out in the company of other Kapow Robot Developers.


    Round number to two decimals

    avatar
    Jacob Bruun


    Posts : 6
    Points : 1633
    Join date : 2019-11-11
    Age : 64

    Round number to two decimals Empty Round number to two decimals

    Post by Jacob Bruun Thu Mar 11, 2021 3:47 pm

    How do I round a number two decimals?
    Round function rounds to integer!

    This expression: toNumber(PostingGarantUdbytte.Udbytte) * toNumber(PostingGarantUdbytte.InvProc) / 100 returns 1337.868 and I want it to be 1337.87.

    This: round(toNumber(PostingGarantUdbytte.Udbytte) * toNumber(PostingGarantUdbytte.InvProc) / 100) returns 1338 so this function I can not use.

      Current date/time is Fri Apr 19, 2024 12:33 pm