- itemcount => $data->{itemcount},
- ratiocalc => $ratiocalc,
- ratio_ge_one => $ratiocalc ge 1.0 ? 1 : "",
- listcall => $data->{listcall}
+ itemcount => $data->{itemcount},
+ ratiocalc => sprintf("%.0d", $ratio_atleast1 ? ($thisratio / $ratio) : $thisratio),
+ thisratio => sprintf("%.2f", $thisratio),
+ thisratio_atleast1 => ($thisratio >= 1) ? 1 : 0,
+ listcall => $data->{listcall}