L
Larry Levinson
I have a formula to calculate a percentage,
dim used, guests as Long, result as single
result = (USED / GUESTS)*100
and get the dreaded overflow on data type error on some of the
answers.
I tried double, variant and decimal in the dim statment. decimal
wouldn't even take in the dim.
then, I tried, result = round((USED / GUESTS)*100,1)
but the syntax gets hung up on the parentheses ...
help greatly appreciated.
Larry Levinson
Talking up to the vocal ...
LLevinson*Bloomberg.net
(remove the star etc ....)
dim used, guests as Long, result as single
result = (USED / GUESTS)*100
and get the dreaded overflow on data type error on some of the
answers.
I tried double, variant and decimal in the dim statment. decimal
wouldn't even take in the dim.
then, I tried, result = round((USED / GUESTS)*100,1)
but the syntax gets hung up on the parentheses ...
help greatly appreciated.
Larry Levinson
Talking up to the vocal ...
LLevinson*Bloomberg.net
(remove the star etc ....)