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
fix(data): use round(log10(x)) for magnitude notation
The previous formula used floor(log10(x)) which was mathematically
incorrect for magnitude notation. The correct formula is round(log10(x)),
which better represents the order of magnitude by rounding to the nearest
integer power of 10.
This affects several display values:
- ,234.23: 3 → 4
- 00.00: 2 → 3
- 2.00: 1 → 2
- .50: 0 → 1
- .50: -1 → 0
- .00: 0 → 1
closes#175
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments