Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Symbol # after numbers
Hi, I found a code that uses the symbol # after some numbers, what is the
function of this? This is part of the code If N < 2 Or beta <= 0# Or beta = 1# Or Alpha <= 0# Or Alpha = 1# Then Tol2 = CDbl(CVErr(xlErrValue)) Exit Function End If c = 1# / Sqr(2# * 3.14159265358979) Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Symbol # after numbers
It just defines the data type. It helps to keep VBA from getting confused.
-- Gary''s Student - gsnu200909 "Marcus" wrote: Hi, I found a code that uses the symbol # after some numbers, what is the function of this? This is part of the code If N < 2 Or beta <= 0# Or beta = 1# Or Alpha <= 0# Or Alpha = 1# Then Tol2 = CDbl(CVErr(xlErrValue)) Exit Function End If c = 1# / Sqr(2# * 3.14159265358979) Thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Symbol # after numbers
That signifies significant digits. For example, if you type beta = 1.00000,
VBA will automatically revice the syntax to bets = 1#, but if you type beta = 1, VBA leaves that syntax alone. Try it yourself. Hope this helps! If so, let me know, click "YES" below. -- Cheers, Ryan "Marcus" wrote: Hi, I found a code that uses the symbol # after some numbers, what is the function of this? This is part of the code If N < 2 Or beta <= 0# Or beta = 1# Or Alpha <= 0# Or Alpha = 1# Then Tol2 = CDbl(CVErr(xlErrValue)) Exit Function End If c = 1# / Sqr(2# * 3.14159265358979) Thanks. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Symbol # after numbers
Hello,
Its just telling VBA that the constant is of type double so it does not need to get casted (VBA will never get irritated :-) # -- Double % -- Integer & -- Long @ -- Currency ! -- Single $ -- String [found in the web] Regards, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conditional Format Negative to Postiive Numbers w/3 Symbol Icon Se | Excel Discussion (Misc queries) | |||
How to print numbers invariably using dots as decimal symbol? | Excel Programming | |||
How do I add a symbol between numbers in a column? | Excel Worksheet Functions | |||
In Format>Cell>Numbers>currency>Symbol Please add "Rs. India" | Excel Worksheet Functions | |||
How do I insert the degree symbol in a column of numbers? | Excel Discussion (Misc queries) |