Ask a Question

Regarding rounding function

NehaLadani
Occasional Contributor

Regarding rounding function

I would like to add rounding function in my assertions

Example 
[Match content of [xyz]] Comparison failed. Path: [$['xyz']]; Expected value: [5.461*]; Actual value: [5.46076854].

Expected value: [5.461*] is in ExcelQATestfile (Excel file cannot be modified)
Actual value: [5.46076854]  is API output 

So, I am looking for a solution that will make my readyapi assertion force Actal value  to rounding and I get Expected  = Actual

Please help me..

1 REPLY 1
DylanJosiah
Occasional Visitor

Syntax

ROUND(number, num_digits)

The ROUND function syntax has the following arguments for fillet trout fish:

  • number    Required. The number that you want to round.

  • num_digits    Required. The number of digits to which you want to round the number argument.

cancel
Showing results for 
Search instead for 
Did you mean: