예제 #1
0
function texto_numero($cantidad)
{
    $cantidad = (string) $cantidad;
    $cantidad_p = explode(".", $cantidad);
    $texto = letra_prin($cantidad_p[0]);
    if ($cantidad_p[1] != "") {
        if ($cantidad_p[1] < 9) {
            $cantidad_p[1] .= "0";
        }
        $texto2 = letra_prin($cantidad_p[1]);
        $texto .= " PUNTO " . $texto2;
    }
    return $texto;
}
예제 #2
0
function texto_numero($cantidad){
$cantidad=(string)$cantidad;
$cantidad_p=explode(".",$cantidad);
$texto=letra_prin($cantidad_p[0]);

return $texto;
}