Wednesday, January 26, 2011

Converting Integers to decimal

In this code I will show how to convert an integer to a decimal. 

Converts an decimal to a Integer




 Dim milk AS Decimal 
  
 Dim Charles as Integer
  
 Eggs = 24
  
 charles =CInt(eggs) or Decimal.ToInt32(eggs) 
  
 MessageBox.Show(charles.GetType.ToString)
  

1 comment:

  1. The code works well. I'd like to see it in a code box with the code formatter. http://codeformatter.blogspot.com/2009/06/about-code-formatter.html

    ReplyDelete