Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

Why VB append a # on my statement?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Woo Mun Foong - 10 Mar 2005 06:49 GMT
Hi,

I am puzzled by the fact that VBA append a # at the end of my programming
statement.

Dim val as Double

val = 0.5 + 10000000000# <- the # appended by VBA after the 10th zero (the
11th digit)

however

val = 0.5 + 1000000000 <- no problem if only contain 9 zeros (10 digits)

thank you
John Nurick - 10 Mar 2005 14:19 GMT
The "#" signifies that the literal value is being compiled as a Double and
not the default Long, because 1E10 (10,000,000,000) is too large to be
stored in a Long.

> Hi,
>
[quoted text clipped - 11 lines]
>
> thank you
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.