I am quiet new to oTree and to programming as such. My problem is with the rounding up of my payoff. So, £11.50 becomes £12.00. I tried my best to figure out a way to stop this but haven't been able to figure out anything yet. I have created a separate app for this.
This is the code I am using:
class Payment(Page):
@staticmethod
def vars_for_template(player: Player):
participant = player.participant
return dict(
redemption_code=participant.label or participant.code,
earning = format(float(participant.payoff / 10), '.2f')
)