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.

How to convert 25,759,100.00 into 25759100

AkhilsAkhils Members
edited November -1 in Sahi - Open Source
I have a text value, brought by using _getText functionality.
Value is 25,759,100.00
But I want to convert this value to 25759100

For this we are trying ParseInt functionality but its not working.

Please help me on this.......

Comments

  • narayannarayan Administrators
    You will need to remove the commas before you pass it to parseInt.
    Use:
    parseInt("25,759,100.00".replace(/[,]/g, ""))
Sign In or Register to comment.