65.9K
CodeProject is changing. Read more.
Home

A tip/trick about Type Character

starIconstarIconstarIconstarIconstarIcon

5.00/5 (3 votes)

Jan 31, 2011

CPOL
viewsIcon

14104

Type Character

While looking at some old code, I found surprising behavior in my IDE. I found value = -1000.25623! in the code. I changed the value to -1000.25626 and it automatically changed to -1000.25629. I tried to search what it could be with no success. Then I suddenly pointed at ! and found the tooltip. Single Represents a single-precision floating-point number. So ! was representing a single value. The above line represents the following block.
   Dim temp As Single
   Dim value As Double
   temp = -1000.25626
   value = temp
More Type Characters[^] [Thanks to Dave[^]] *It may not be a tip/trick, but it is definitely the piece worth sharing.