久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網
      最全最豐富的資訊網站

      Asp實現人民幣大小寫轉換代碼

      Asp實現人民幣大小寫轉換示例:
      <%  
        Function   rmb(num)  
         
        num   =   FormatNumber(num,   2)  
        Dim   numList    
        Dim   rmbList    
        Dim   numLen  
        Dim   numChar  
        Dim   numstr  
        Dim   n    
        Dim   n1,   n2    
        Dim   hz  
        numList   =   “零壹貳叁肆伍陸柒捌玖”  
        rmbList   =   “分角元拾佰仟萬拾佰仟億拾佰仟萬”  
        If   num   >   9999999999999.99   Then  
        rmb   =   “超出范圍的人民幣值”  
        Exit   Function  
        End   If  
        numstr   =   CStr(num   *   100)  
        numLen   =   Len(numstr)  
        n   =   1  
        Do   While   n   <=   numLen  
        numChar   =   CInt(Mid(numstr,   n,   1))  
        n1   =   Mid(numList,   numChar   +   1,   1)  
        n2   =   Mid(rmbList,   numLen   –   n   +   1,   1)  
        If   Not   n1   =   “零”   Then  
        hz   =   hz   +   CStr(n1)   +   CStr(n2)  
        Else  
        If   n2   =   “億”   or   n2   =   “萬”   or   n2   =   “元”   or   n1   =   “零”   Then  
        Do   While   Right(hz,   1)   =   “零”  
        hz   =   Left(hz,   Len(hz)   –   1)  
        Loop  
        End   If  
        If   (n2   =   “億”   or   (n2   =   “萬”   And   Right(hz,   1)   <>   “億”)   or   n2   =   “元”)   Then  
        hz   =   hz   +   CStr(n2)  
        Else  
        If   Left(Right(hz,   2),   1)   =   “零”   or   Right(hz,   1)   <>   “億”   Then  
        hz   =   hz   +   n1  
        End   If  
        End   If  
        End   If  
        n   =   n   +   1  
        Loop  
        Do   While   Right(hz,   1)   =   “零”  
        hz   =   Left(hz,   Len(hz)   –   1)  
        Loop  
        If   Right(hz,   1)   =   “元”   Then  
        hz   =   hz   +   “整”  
        End   If  
        rmb   =   hz  
        End   Function  
        %>  
        <%  
        dim   tmpnum  
        tmpnum=589666  
        response.write   tmpnum  
        response.write   rmb(cdbl(tmpnum))  
        %> 

       

      分享到: 更多

      贊(0)
      分享到: 更多 (0)
      網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號