Message # 1 | 7:08 AM
How do I display 3 numbers when doing calculations?

Example:
$OTHER10$ Value 100000
$OTHER9$ Value 150000'

I changed it to percent. To display what percentage of the discount is.

Code
<? 100-(($OTHER10$/$OTHER9$)*100) ?>


Then the result: 33.3333333333333

But because of the extension, I just want to take 2 or 3 numbers. so "33.3" or "33".

I tried using a formula like this but it can't,

Code
<? substr(100-(($OTHER10$/$OTHER9$)*100),3,4) ?>


Does anyone know how?

Added (2018-11-06, 8:21 AM)
---------------------------------------------
UP