You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example code shown below, with the Macro version from August 22, 2023, generating the rounding explanation for the value 389.78582 to three significant figures generates an incorrect explanation with a double decimal point. See attached screen shot.
I was able to fix this by changing contextInexactValue lines 1240 and 1242 from:
In the example code shown below, with the Macro version from August 22, 2023, generating the rounding explanation for the value 389.78582 to three significant figures generates an incorrect explanation with a double decimal point. See attached screen shot.
I was able to fix this by changing contextInexactValue lines 1240 and 1242 from:
$firstDigitToDrop = substr($trimmedData, $ind, 1); $ind++; $restToDrop = substr($trimmedData, $ind, length($trimmedData) - $ind);
to
$firstDigitToDrop = substr($decimalRemoved, $ind, 1); $ind++; $restToDrop = substr($decimalRemoved, $ind, length($decimalRemoved) - $ind);
The change was using $decimalRemoved instead of $trimmedData. I have not tested this change widely, but it seemed to fix the current issue.
Sample code is attached.
SigFigDescriptionError.txt
The text was updated successfully, but these errors were encountered: