I guess the documentation is incorrect. The ROUND returns the result of division rounded to the closest integer number. It divides first and then rounds. Replace lines 56 and 57 in your code with DIVIDE(3976336895, 1024, myvariable) : I'm getting a divide by zero error when attempting to use the round function : to change a number to an integer. A similar problem occurs when trying to : use the floor function to do the same. Here are the trace results and : exact error syntax: JAL 55: ADD : JAL 55: Executing ADD("3976335872", "1023", : "3976335872") : JAL Return "3976336895" : JAL 56: DIVIDE : JAL 56: Executing DIVIDE("3976336895", "1024", : "3976336895") : JAL Return "3883141.499023438" : JAL 57: ROUND : JAL 57: Executing ROUND("3883141.499023438", "0", : "3883141.499023438") : An error occured while executing 24x7 script. : Line 57: Division by zero. : And here is the code being executed: Add (space_free, 1023, space_free) : Divide (space_free, 1024, space_free) : Round( space_free, 0, space_free)
|