I'm trying to get minus sign before negative numbers and plus sign before positive ones. I'm using sprintf.
sprintf("%+d",$voteCount)
This is working okay, except for zero. I don't want a plus sign before zero. How can I get it to display plus sign for all positive numbers, but no sign for zero?