Senin, 19 November 2007

Numeric Literal and Hexadecimal


class NumericLiteral


{


static void Main()


{


//numeric literal


float unitprice = 123.45F;


double cobacoba = 3.256;


decimal coba2 = 3.256M;


//hexadecimal


int sixteen = 16;


int sixteeninDecimal = 0x10;


 


// end of mt940 msg is char(0x1A)


// if (line.Length == 1 && line[0] == 0x1A)


//0x1A equals 26


}

Tidak ada komentar: