Expand my Community achievements bar.

Over/under flow problems and calculation sign

Avatar

Level 4

I have two problems here and I need some help.  I'm having continued overflow/underflow problems and can't figure out what I'm doing wrong.  Here is a script.

If (Page2.Table2.Row40.Line40VOC > 0) then

$.rawValue = Page2.Table2.Row40.Line40VOC / Page2.Table3.Row44.Line44VOC;

endif

My second problem is:  If a negative number is entered in Line 40, then Line 46 needs to be a positive number.

The script I have for line 46 is: 

if(Page2.Table2.Row40.Line40VOC > 0) then

$.rawValue = Page2.Table2.Row40.Line40VOC / Page2.Table3.Row44.Line44VOC;

endif

Any help would be greatly appreciated.

Connie Bretes

1 Reply

Avatar

Level 10

Try this script to avoid under/overflows and also to calculate with negative numbers:

If (Page2.Table2.Row40.Line40VOC ne null and Page2.Table3.Row44.Line44VOC ne null) then

     $ = Page2.Table2.Row40.Line40VOC / Page2.Table3.Row44.Line44VOC;

endif