Try $MyEntity/Rate : 100.
Regards,
Ronald
Div doesn't perform an integer division; it should return a Decimal even if you use integer values.
https://docs.mendix.com/refguide/arithmetic-expressions/#division
If you are seeing 0, I suspect something else is going on. Have you tried adding a breakpoint and examining the input and output values in the debugger straight after your division?
Try this
$MyEntity/Rate / 100
if you're using a variable
$CalculatedRate = $MyEntity/Rate / 100
Note:
Ensure that the Rate attribute is of type Decimal, Not Integer
you can aslo use FormatDecimal($MyEntity/Rate /100, '#0.00')).
for example: If the user enters 15, it will correctly store 0.15 in your decimal attribute.