Posted: 15 Jul 2015 7:06 EDT Last activity: 30 Aug 2015 13:41 EDT
Remove leading zeros from an integer
I have an integer. say an account number which I am getting from DB as 000000000XXXXXXXX. Requirement is to remove all the leading zero's from the value and then display it on the screen. Do we have any function to achieve that?
Note: We cannot use substring function because we are not sure how many leading zero's will be present for that value(means number of zero's are not fixed)