Lora_P_
13 years agoNew Contributor
Math.round();
By some reason I have problem using Math.round(), C# script, TestComplete
In my test I calculate data to compare with the GUI value. Calculated data should be rounded to the nearest integer.
var total;
//calculate total
total=Math.round(total);
Looks like it doesn't recognize Math.round
Can someone help with other solution.
The total is in format 167.45
Thanks!
In my test I calculate data to compare with the GUI value. Calculated data should be rounded to the nearest integer.
var total;
//calculate total
total=Math.round(total);
Looks like it doesn't recognize Math.round
Can someone help with other solution.
The total is in format 167.45
Thanks!