Esempio n. 1
0
 function convertir($numero)
 {
     $numf = milmillon($numero);
     return $numf;
 }
Esempio n. 2
0
function NumberToText($numero, $unidad_medida = NULL, $moneda = NULL)
{
    $totDecimals = strlen(substr(strrchr($numero, "."), 1));
    $decimals = '00/100';
    if ($totDecimals > 0) {
        $decimals = substr($numero, strlen($numero) - $totDecimals, 2);
        $numero = substr($numero, 0, -1 - $totDecimals);
        if ($decimals != '') {
            $decimals = $decimals . '/100';
        }
    }
    $numf = milmillon($numero) . ' ' . $unidad_medida . ' ' . $decimals . ' ' . $moneda;
    return $numf;
}
Esempio n. 3
0
function convertir($numero)
{
    $numf = milmillon($numero);
    $esdecimal = 0;
    $esdecimal = explode(".", $numero);
    if (@$esdecimal[1] >= 1) {
        return $numf . "/100";
    } else {
        return $numf . " 00/100";
    }
}
Esempio n. 4
0
function convertir($numero)
{
    $numf = milmillon($numero);
    return $numf . " PESOS MCTE";
}
function convertirletras_porcentaje($numero)
{
    //$numero			= $numero * 100;
    $numero = number_format(floatval($numero), 2, '.', '');
    $padar = explode(".", $numero);
    $numf = milmillon($padar[0]);
    $cents = milmillon(intval($padar[1]));
    return $numf . " PUNTO {$cents} POR CIENTO";
}