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
The fmt_scientific() formatter is designed to internally label numeric values that would lead to power-of-zero figures (e.g., 1.53 x 10^0 should just be 1.53). This results in the exclusion of those labeled numbers in getting a x 10^y part (which would end up being x 10^0).
However, the current method can result in incorrect formatting when values are scaled with scale_by != 1. Some scaled numbers incorrectly get formatted with a x 10^0 and others don't get a required x 10^y part. Here is an example:
where rows 2 and 4 are incorrectly formatted. The solution is to scale the incoming values first, and then perform the checks for excluding the x 10^0 part.
The text was updated successfully, but these errors were encountered:
The
fmt_scientific()
formatter is designed to internally label numeric values that would lead to power-of-zero figures (e.g., 1.53 x 10^0 should just be 1.53). This results in the exclusion of those labeled numbers in getting ax 10^y
part (which would end up beingx 10^0
).However, the current method can result in incorrect formatting when values are scaled with
scale_by != 1
. Some scaled numbers incorrectly get formatted with ax 10^0
and others don't get a requiredx 10^y
part. Here is an example:where rows 2 and 4 are incorrectly formatted. The solution is to scale the incoming values first, and then perform the checks for excluding the
x 10^0
part.The text was updated successfully, but these errors were encountered: