Script - variable definition

Hello

 

I am writing a script and and doing a calculation example: v2 = a1/b1;

v2 = 840/270 = 3.111, I would like to only use the whole number further in the next calculation.

For example 3x170. Is there a way to define the var v2 so that it only returns 3, and not 3.111?

 

Thanks

Mario

Hi Mario,

Use the ROUND() function: https://help.optuma.com/kb/faq.php?id=1039

So your example:

V1 = a1/b1;

ROUND(V1, DECIMALTYPE=0)

Capture

 

Worked great, thanks Darren