Skip to content
New issue

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

It does not work properly for some extreme cases #77

Closed
nskazki opened this issue Jan 29, 2016 · 2 comments
Closed

It does not work properly for some extreme cases #77

nskazki opened this issue Jan 29, 2016 · 2 comments

Comments

@nskazki
Copy link

nskazki commented Jan 29, 2016

version: [email protected]

> filesize(1/8, { bits: true })
'1024 '
> filesize(1024*1024*1024*1024*1024*1024*1024*1024*1024, { bits: true })
'8 '
> filesize(1, { bits: true })
'8 b'
> filesize(1024*1024*1024*1024*1024*1024*1024*1024, { bits: true })
'8 Yb'
> 
@nskazki
Copy link
Author

nskazki commented Jan 29, 2016

> filesize(1/8)
'128 '
> filesize(1)
'1 B'
> 

@avoidwork
Copy link
Owner

Hi,

Good catch! This looks like a regression from a reduction in complexity that happened a while ago. The e value gets turned into a 9 and no longer maps to a symbol.

screen shot 2016-01-29 at 5 14 22 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants