PRR IP Cbet. Format extension.
I want make custom stat Cbet IP in 3bet pot. I've done it already but have a question. In "Format expression" field I put the following code:
format( '{1}%({2}/{3})',
format_number(
(cnt_prr_ip_f_cbet / cnt_prr_ip_f_cbet_opp) * 100
,0,false,false),
cnt_prr_ip_f_cbet,
cnt_prr_ip_f_cbet_opp)
As you see i dont check the case when cnt_prr_ip_f_cbet_opp = 0. Is it correct or I should make a check for this case?
Also an error occurs during housekeeping "Devision by zero". Is this error associated with the mistake in format expression above?
format( '{1}%({2}/{3})',
format_number(
(cnt_prr_ip_f_cbet / cnt_prr_ip_f_cbet_opp) * 100
,0,false,false),
cnt_prr_ip_f_cbet,
cnt_prr_ip_f_cbet_opp)
As you see i dont check the case when cnt_prr_ip_f_cbet_opp = 0. Is it correct or I should make a check for this case?
Also an error occurs during housekeeping "Devision by zero". Is this error associated with the mistake in format expression above?
