OP updated to reflect the increasing urgency surrounding negative/zeroed balance as well as NaN and Inf's prevalence.