Forum Discussion

rlong98's avatar
rlong98
Contributor
10 years ago
Solved

How to round a decimal value when working with context.expand number values?

I'm to verify values of an equation that is happening on the back end. Example Values: wages = 29250 divby = 11670 Should Equal = 2.5064267352 //which it does   QUESTION:  I need the result val...
  • rlong98's avatar
    rlong98
    9 years ago

    Thanks Rupert

     

    I did find this:

    (<math equation>).toDouble().round(3)

     

    Still a rookie in the scripting work - not understanding the "Double" term.

     

    Thanks again...

    Rob