I have a variable with a value in string format:
15000
I need to compare this value with another value in the database. It turns out that in this string that comes with the value, the last two digits are always referring to the cents. That is, the above value is 150.00
How can I format the value?
Ex: variable with value of 124589 = 1245.89