I think it doesn't matter (#) in your case.
This is from Qlik Reference Manual
Dollar-Sign Expansion Using a Variable
When using a variable for text replacement in the script or in an expression, the following syntax is used:
$( variablename )
$( variablename) expands to the value in variablename. If variablename does not exist the expansion will
be the empty string.
For numeric variable expansions, the syntax $( variablename ) will generate a number using the regional decimal
separator, i.e. for many countries a decimal comma. Such an expansion should not be used for numbers
inside the script since these must use decimal point. Instead the expansion $(# variablename ) should be
used. (Note the hash sign). It always yields a valid decimal-point representation of the numeric value of variablename,
possibly with exponential notation (for very large/small numbers). If variablename does not exist
or does not contain a numeric value, it will be expanded to 0 instead.
After execution of the following script:
LET X = 7/2;
$(X ) will expand to 3,5 while $(#X ) will expand to 3.5.