Meaning of: VariableName = 0#

M

Mark Hammer

I've inherited some code where the developer initializes some fields to 0#.

Can someone tell me the significance of the #? How is that different from
setting them to zero?

TIA,

Mark Hammer
Lake Oswego, Oregon, U.S.
 
6

'69 Camaro

Hi, Mark.

The # sign after a number signifies a double data type, which requires eight
bytes for storage. Without the # sign after a number, the computer will use
the default number data type, which is long (four bytes for storage) for a
32-bit operating system.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
 
A

Andi Mayer

I've inherited some code where the developer initializes some fields to 0#.

Can someone tell me the significance of the #? How is that different from
setting them to zero?
a small difference: the # marks this number as double dataType
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top