18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Round off the digits

arunbalaarunbala Members
edited November -1 in Sahi - Open Source
Hi there,
I just want to round off the value. Example if the value is15.9654521, it has to be rounded off into 16. And if the value is 15.4398456 means it has to be rounded off into 15.

I have tried tried with the following codes.But i couldn't

value.setScale(0, RoundingMode.HALF_UP);

Please help on this issue.
Thnx
Sign In or Register to comment.