1

I set $1 = 1150 KRW as currency rate. Is there any way I can show the last two digits of KRW is always 00?

For example, if the product price is $15.5(15.5 x 1150=17,820 KRW), but I want to show 17,800 KRW (last two digits 00)

| improve this question | | | | |
1

Use this in the end

floor( $finalNumber / 100 ) * 100

Works for me perfectly.

Thank you

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.