Skip to main content

Posts

Showing posts from July, 2012

convert amount to rupees in words format in c#

convert amount to rupees in words format in c# public string words ( int numbers )         {             int number = numbers ;             if ( number == 0 ) return "Zero" ;             if ( number == - 2147483648 ) return "Minus Two Hundred and Fourteen Crore Seventy Four Lakh Eighty Three Thousand Six Hundred and Forty Eight" ;             int [] num = new int [ 4 ];             int first = 0 ;             int u , h , t ;             System . Text . StringBuilder sb = new System . Text . StringBuilder ();             if ( number < 0 )             {                 sb . Append ( "Minus " );                 number = - number ;             }             string [] words0 = { "" , "One " , "Two " , "Three " , "Four " , "Five " , "Six " , "Seven " , "Eight " , "Nine " };             string []