Examples. shipping_amount and start_price both decimals.

if form.vars.shipping_amount > (form.vars.start_price * 0.2):
TypeError: unsupported operand type(s) for *: 'Decimal' and 'float'


drops is integer, price_change, start_price are decimals.

    if ((form.vars.drops * form.vars.price_change) / form.vars.start_price) < 
0.20:
TypeError: can't multiply sequence by non-int of type 'Decimal'


if ((float(form.vars.drops) * form.vars.price_change) / form.vars.start_price) 
< 0.20:
TypeError: unsupported operand type(s) for *: 'float' and 'Decimal'

Reply via email to