back in the day, I seem to recall that if you used VAL() on a number that was user-entered, you could get the wrong values when decimals were involved.
eg on a UK/USA system, Val(“3.1”) = 3.1
whereas if the locale was EU, Val(“3.1”) = 3
or similarly
on a UK/USA system, Val(“3,1”) = 3
whereas if the locale was EU, Val(“3,1”) = 3.1
CDbl is supposed to handle localisation.
But today I have been debugging an issue, and found that if user-entered 3.1
and the system is in EU locale,
CDbl(“3.1”) produces 31, not 3
This seems new (and buggier than losing the matissa) ?
16 posts - 6 participants