01.05.2015, 21:15

Hi guys,

I'm makeing some stats for business system and I have a little bit BIG problem, some arrays will be zero few days(maybe more) in new month(stats are splited in months) but computer can't divide with zero. So, is any way that exit from dividing be 0 if is divider 0? It's help me a lot because now(with this stupid math) I must split that code(format function) on whole bench of ugly checks... Thanks a lot guys

I'm makeing some stats for business system and I have a little bit BIG problem, some arrays will be zero few days(maybe more) in new month(stats are splited in months) but computer can't divide with zero. So, is any way that exit from dividing be 0 if is divider 0? It's help me a lot because now(with this stupid math) I must split that code(format function) on whole bench of ugly checks... Thanks a lot guys