We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var bytes = 197621805, size = filesize(bytes); // size is '1.47 Gb'
Shouldn't this output be '188.47 MB'? Why is it spitting out the value in gigabits?
The text was updated successfully, but these errors were encountered:
The default behaviour is bits & bytes. There's an optional second (decimal places) & third parameter (boolean) to control the format of the result.
filesize(197621805, 2, false);
I did notice the scientific notation is rounded up (sigh, google...), so I'll fix those for accurate numbers.
Sorry, something went wrong.
Fixing scientific notation (google!), fixes #39
80c5fc6
1.9.7 fixes the base 2 sizes. 1.10.0 switches to base 10.
No branches or pull requests
Shouldn't this output be '188.47 MB'? Why is it spitting out the value in gigabits?
The text was updated successfully, but these errors were encountered: