ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Wath means (https://www.excelbanter.com/excel-programming/387454-wath-means.html)

Luis Fernando Ortiz M.[_2_]

Wath means
 
Hi everybody,

In a pice of code I found this expression.

Case Is < 2000000000000#

Wath means an what is the function of "#"

Regards,


--
Luis Fernando Ortiz Maldonado



joel

Wath means
 
# indicates the number is single precision, not an integer.

"Luis Fernando Ortiz M." wrote:

Hi everybody,

In a pice of code I found this expression.

Case Is < 2000000000000#

Wath means an what is the function of "#"

Regards,


--
Luis Fernando Ortiz Maldonado




Dave Peterson

Wath means
 
You sure it doesn't mean double?



Joel wrote:

# indicates the number is single precision, not an integer.

"Luis Fernando Ortiz M." wrote:

Hi everybody,

In a pice of code I found this expression.

Case Is < 2000000000000#

Wath means an what is the function of "#"

Regards,


--
Luis Fernando Ortiz Maldonado




--

Dave Peterson

joel

Wath means
 
Dave: I'm not sure. This is what I did this afternoon.

Dim abc As Single
abc = 5.0

Excel changed the 5.0 to 5#.

"Dave Peterson" wrote:

You sure it doesn't mean double?



Joel wrote:

# indicates the number is single precision, not an integer.

"Luis Fernando Ortiz M." wrote:

Hi everybody,

In a pice of code I found this expression.

Case Is < 2000000000000#

Wath means an what is the function of "#"

Regards,


--
Luis Fernando Ortiz Maldonado




--

Dave Peterson


Dave Peterson

Wath means
 
Seach VBA's help for DataType.

Look at Double (and single).

You'll see that each help ends with a statement like:

The type-declaration character for Double is the number sign (#).

and

The type-declaration character for Single is the exclamation point (!).

I think you just got some help from the VBE since you typed in the decimal point
and 0.

=======
From the VBE's immediate window:

?typename(5#)
Double

?typename(5.0#)
Double

?typename(5.0)
Double

?typename(5)
Integer





Joel wrote:

Dave: I'm not sure. This is what I did this afternoon.

Dim abc As Single
abc = 5.0

Excel changed the 5.0 to 5#.

"Dave Peterson" wrote:

You sure it doesn't mean double?



Joel wrote:

# indicates the number is single precision, not an integer.

"Luis Fernando Ortiz M." wrote:

Hi everybody,

In a pice of code I found this expression.

Case Is < 2000000000000#

Wath means an what is the function of "#"

Regards,


--
Luis Fernando Ortiz Maldonado




--

Dave Peterson


--

Dave Peterson


All times are GMT +1. The time now is 02:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com