remove decimal amount won

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

remove decimal amount won

Postby raph156 » Thu Sep 01, 2011 7:19 am

I tryed compilation with /%.0f bu didnt work
Tx for help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: remove decimal amount won

Postby kraada » Thu Sep 01, 2011 8:56 am

Are you trying to use this in the HUD? If so you can set Decimals to 0 on the Statistics Properties box and don't need to make a custom statistic for this change.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: remove decimal amount won

Postby raph156 » Thu Sep 01, 2011 9:05 am

in the hud decimal are already remove but i would like thise change for the stat " amount won" in tab summary
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: remove decimal amount won

Postby WhiteRider » Fri Sep 02, 2011 4:59 am

You will need to make a new version of the stat and remove the "format_money" from the Format Expression.
/%.0f should give you zero decimal places.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 3 guests