I am querying lot of fields from Teradata and validating with the values displayed in UI using Selenium (Java). All my fields have only 3 decimal points.
For Eg,Number in DB = 4.199
is displayed as 4.199
in UI
and Number in DB
= 4.190
is displayed as 4.19
in UI
and Number in DB
= 4.100
is displayed as 4.1
in UI
When I assert, 4.190
and 4.19
are considered different by Selenium. I have lot of fields of this kind.How can I solve this?
Is there any other function like cast or round that can format the data in the way I want?