Author Topic: Problem with zeros after decimal comma  (Read 809 times)

007FG

  • Newbie
  • *
  • Posts: 1
    • View Profile
Problem with zeros after decimal comma
« on: March 31, 2018, 12:22:49 PM »
Hello friends:

I have the tournament screen with prizes for 1st, 2nd , 3rd place (60%, 30%, 10%) but I want to show the prizes without the two zeros after decimal comma. I've tried many ways, also searched in the forum about how to do this but nothing... can you help me with this little issue?

PD: I have the last version of TD (3.4.3)

Thank youˇˇˇ

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Problem with zeros after decimal comma
« Reply #1 on: April 02, 2018, 04:17:56 PM »
Both the <prizes> and pot layout tokens have a roundOff attribute.  Just modify them and set roundOff to true.  For example, in your "Pot" cell the contents are likely just:

<pot>

Change it to :

<pot roundOff="true">

Same with the prizes.