Click here to Skip to main content
Click here to Skip to main content

A tip/trick about Type Character

By , 3 Feb 2011
Rate this:
Please Sign up or sign in to vote.
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Prerak Patel
Software Developer
India India
Working since 2006 on VBA, VB6, VB.Net, C#, ASP.Net, MSSQL



  • The fear of suffering is worse than the suffering itself.
  • People need not fear the unknown if they are capable of achieving what they need and want.
  • Every blessing ignored becomes a curse.
  • Sometimes what's in your head isn't as crazy as you think.
  • We never really grow up, we only learn how to act in public.
  • You can make very bad teams with very good individuals.
  • Admitting mistakes means you have a sense of responsibility in your actions and that shows you are more matured than almost anyone. -Nithin


Comments and Discussions

 
GeneralThe subject of your Tip PinmvpHenry Minute31-Jan-11 4:21 
GeneralRe: The subject of your Tip PinmemberPrerak Patel31-Jan-11 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 3 Feb 2011
Article Copyright 2011 by Prerak Patel
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid