static double percent(uint32 num, uint32 total)
static double percent(int32 num, int32 total)
static double percent(uint32 num, uint32 total){    if (num == 0)        return 0.0;    return ((double) num * 100) / (double) total;}