psr_21-22
psr_21-22 copied to clipboard
type_hit_average_duration / type_miss_average_duration
Good afternoon, I was coding for the assignment, and a problem came along that seems to be easy to solve but i dont understand how to do so. when we want to calculate type_hit_average_duration / type_miss_average_duration the problem that appears is when we either hit all of the requested chars or when we miss all of them. we will be dividing the time by 0 since we want the average of times for correct answers or incorrect answers. How can i solve this problem?
Hi @TiagoMFonte ,
in those cases you can just say that average can be "None".
Ok, thanks.