Return to Snippet

Revision: 22517
at January 14, 2010 01:55 by giak


Initial Code
// cross product
function neo_percent($total, $rapport){
    if($total > 0){
        $percent = ( 100 * $rapport) / $total ;
    }else{
        $percent = 0;
    }
    return round($percent,2);
}

Initial URL
http://www.giacomel.fr

Initial Description

                                

Initial Title
PHP : percent an INT

Initial Tags

                                

Initial Language
PHP