Incorrectly formats bytes
See original GitHub issuenumbro@2.3.0
numbro(1000000)
.format({
spaceSeparated: true,
totalLength: 2,
output: 'byte',
base: 'binary'
})
Output:
"1.0 kKiB"
Expected output:
"1 MiB"
Reproduction: https://runkit.com/timfish/5ed8d491ede291001abed442
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Need help reading bytes from a file (incorrect bytes returned)
i am trying to create a simple program to edit MP3 tags.But the problem is i am stuck at the very first step,as...
Read more >bytes formatting incorrect in python 3 · Issue #2070 - GitHub
The quick and dirty fix would be to just change the return type to be the same as the arg type. But the...
Read more >FastLoad Error -incorrect number of bytes returned
i am using windows without unix platform. now i am trying to create a new empty table and want to insert this data...
Read more >Text format is wrong??? - MSDN - Microsoft
I convert the text to "Windows-125": byte[] bytes = Encoding.
Read more >Bytes sent incorrectly reported in log viewer - Sophos Firewall
We use Fastvue and these incorrect bytes values mess with our reporting. ... https://www.google.com/log?format=json&hasfast=true&authuser=0 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also running into this bug, showing
1 kGiB
instead of1 TiB
.ok 😄 things are getting out of hand 😄