Hi,
I am trying to create a custom statistic (specifically for 3Bet Preflop) where the HUD dynamically changes the number of decimals displayed based on the value of the stat.
My Goal:
• If the stat value is under 10, show 1 decimal place (e.g., 4.2).
• If the stat value is between 10 and 100, show 0 decimal places (e.g., 15).
In Configure -> Statistics, I am using the following code in the Format Expression (right now):
if((cnt_p_3bet / cnt_p_3bet_opp) * 100 >= 99,99, format_number( (cnt_p_3bet / cnt_p_3bet_opp) * 100 , 1 , false , false ))
I have tested different Format Types (Expression, Number, Percent) in the Statistic Editor, and I have set the HUD Item Properties -> Decimals to 0.
The Problem:
The code itself evaluates as valid and works perfectly in the Tooltip / Hover menu (when I hover over the stat in the HUD, it shows the decimal exactly how I want it).
However, directly on the live table / in the Hand Replayer, the decimal for values under 10 is completely cut off. It seems the live HUD overrides the Format Expression and forces a flat integer because HUD Decimals is set to 0. If I change HUD Decimals to 1, then every number gets a .0 attached, which I don't want.
How can I bypass the live HUD's formatting filter so that the decimals from my Format Expression are actually drawn directly onto the table, and not just in the tooltip?
Thank you for your help!
