コード例 #1
0
ファイル: postventa3.php プロジェクト: Emagenic-ltda/pcplay
 function decmillon($numerodm)
 {
     if ($numerodm == 10000000) {
         $num_letradmm = "DIEZ MILLONES";
     }
     if ($numerodm > 10000000 && $numerodm < 20000000) {
         $num_letradmm = decena(Floor($numerodm / 1000000)) . "MILLONES " . cienmiles($numerodm % 1000000);
     }
     if ($numerodm >= 20000000 && $numerodm < 100000000) {
         $num_letradmm = decena(Floor($numerodm / 1000000)) . " MILLONES " . millon($numerodm % 1000000);
     }
     if ($numerodm < 10000000) {
         $num_letradmm = millon($numerodm);
     }
     return $num_letradmm;
 }
コード例 #2
0
ファイル: postventa.php プロジェクト: Emagenic-ltda/pcplay
 function millon($nummiero)
 {
     if ($nummiero >= 1000000 && $nummiero < 2000000) {
         $num_letramm = "UN MILLON " . cienmiles($nummiero % 1000000);
     }
     if ($nummiero >= 2000000 && $nummiero < 10000000) {
         $num_letramm = unidad(Floor($nummiero / 1000000)) . " MILLONES " . cienmiles($nummiero % 1000000);
     }
     if ($nummiero < 1000000) {
         $num_letramm = cienmiles($nummiero);
     }
     return $num_letramm;
 }