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 human-readable byte size converter function in ValueFormat uses the most popular stack exchange code snippet in the world, but close to (but not exceeding) boundary thresholds it tends to perform incorrectly due to precision errors in the math involved.
Bug details
The human-readable byte size converter function in ValueFormat uses the most popular stack exchange code snippet in the world, but close to (but not exceeding) boundary thresholds it tends to perform incorrectly due to precision errors in the math involved.
The fix
The original author (Andreas Lundblad) has posted explanations of the issue and the fix here: https://programming.guide/worlds-most-copied-so-snippet.html
The text was updated successfully, but these errors were encountered: