How to find bets that where exactly rounded to .5?

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

How to find bets that where exactly rounded to .5?

Postby 4StarGen » Wed Mar 05, 2025 9:54 pm

I'd like to find bets of 1.5, 2.5 and so on, how can I do it?
The code below miss them completely

Code: Select all
CASE
    WHEN cash_hand_player_statistics.flg_f_bet AND MOD(cash_hand_player_statistics.amt_f_bet_made / cash_limit.amt_bb * 100 , 10) = 5 THEN 1
    ELSE 0 END
4StarGen
 
Posts: 1020
Joined: Sat Mar 08, 2014 6:58 am

Re: How to find bets that where exactly rounded to .5?

Postby Flag_Hippo » Thu Mar 06, 2025 5:36 am

You need to multiply by 10 instead of 100 to get the correct remainder. The expression also needs another pair of brackets to work correctly:

Code: Select all
CASE
    WHEN cash_hand_player_statistics.flg_f_bet AND MOD((cash_hand_player_statistics.amt_f_bet_made / cash_limit.amt_bb) * 10 , 10) = 5 THEN 1
    ELSE 0 END
Flag_Hippo
Moderator
 
Posts: 17076
Joined: Tue Jan 31, 2012 7:50 am

Re: How to find bets that where exactly rounded to .5?

Postby 4StarGen » Thu Mar 06, 2025 6:44 am

Mental health saviour :)
4StarGen
 
Posts: 1020
Joined: Sat Mar 08, 2014 6:58 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 15 guests