SteveMac32
Programmer
Hi I am trying to get a variable to hold 7 decimal places, simple i thought use FormatCurrency but this does not seem to work with a variable of currency? Try the code below
Dim UnitPrice As Currency
UnitPrice = FormatCurrency(2.1276595, 7)
UnitPrice will = 2.1277
The Currency variable is rounding on and only allowing 4 decimal places and so returning 2.1277
will I have to define the variable as something else like double to make it work?
Thanks
Steve
Dim UnitPrice As Currency
UnitPrice = FormatCurrency(2.1276595, 7)
UnitPrice will = 2.1277
The Currency variable is rounding on and only allowing 4 decimal places and so returning 2.1277
will I have to define the variable as something else like double to make it work?
Thanks
Steve