Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.
Hope you enjoy the instance!
Follow the wormhole through a path of communities !webdev@programming.dev
Just add 1 to the denominator.
Simple is best.
The max(1,total_blocked) method will make instances with 1 blocked and 0 blocked appear to be equal.
Also to note if you don’t want significantly change the proportions add 1 to both top and bottom. It’s going to remove the divide by zero error and won’t significantly alter ratios. It’s used often in data science to avoid this problem