(further) custom hands Stat (without k notation)

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

(further) custom hands Stat (without k notation)

Postby powerxaero » Mon Apr 23, 2012 9:20 pm

Hello,
I'm wondering why my custom stat doesn't show decimals for the times the conditions meet the criteria defined by this formula (wow that sounds super intelligent :lol: ):

Code: Select all
if (cnt_hands > 99999, format_number ((cnt_hands / 1000), 0, true, false), if (cnt_hands <= 999, format_number (cnt_hands, 0, true, false), format_number ((cnt_hands / 1000), 1, true, false)))


Thanks for your support everyone!
powerxaero
 
Posts: 7
Joined: Mon Feb 15, 2010 3:55 am

Re: (further) custom hands Stat (without k notation)

Postby WhiteRider » Tue Apr 24, 2012 3:14 am

Have you configured the HUD Properties for that stat in the HUD? If that is set to 0 it won't display the decimal regardless of the formatting.
Other than that I would expect that to work. If you're still having problems please export your stat and attach it to a Support Ticket so that we can investigate.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: (further) custom hands Stat (without k notation)

Postby powerxaero » Fri Apr 27, 2012 9:42 am

That doesn't help either way. If I set up the HUD stat to "decimals = 1" it shows cnt_hands.x all the time and when set to "decimals = 0" it shows cnt_hands without decimals.
powerxaero
 
Posts: 7
Joined: Mon Feb 15, 2010 3:55 am

Re: (further) custom hands Stat (without k notation)

Postby WhiteRider » Sat Apr 28, 2012 4:20 am

I suspect that any time you make the value you're displaying purely numeric then the decimals property will be used. If you attach your stat to a ticket I'll experiment with it.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: (further) custom hands Stat (without k notation)

Postby powerxaero » Sat Apr 28, 2012 5:44 am

Thank you! It's support ticket #121345
powerxaero
 
Posts: 7
Joined: Mon Feb 15, 2010 3:55 am


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

Who is online

Users browsing this forum: No registered users and 1 guest