Forum Discussion

rlong98's avatar
rlong98
Contributor
10 years ago

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
    10 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