I need to remove training Zero's on a number like: 9.2500 = 9.25 Thanks to a previous post by @Avinash Raj I found this:
^(\d+\.\d*?[1-9])0+$
Which works perfect for that application. However, in some cases I have a number like 11.0000 and the above RegEx returns:
11.0
I need to return:
11
I'm not sure how to remove the decimal and zero when there is not one needed? I've spend some time trying to figure it out but I'm stumped.