alyssonweb on 12/14/10
Last Edited at 12/14/10 08:56pm
function smartPerc($num){ return (( $num - ( int ) $num ) > 0.0) ? number_format( $num, 2, '.', '' ) : (int) $num;}
Report this snippet Tweet
Comment:
You need to login to post a comment.