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

Unsupported operation: Infinity or NaN toInt #62

Open
avik1990 opened this issue Aug 28, 2022 · 0 comments
Open

Unsupported operation: Infinity or NaN toInt #62

avik1990 opened this issue Aug 28, 2022 · 0 comments

Comments

@avik1990
Copy link

avik1990 commented Aug 28, 2022

I am getting this error while download a epub from URL(http://app.sristisukh.com/uploaded/epubfiles/aprakrito_2_epub.epub).
I have directly added the above URL in your demo project IRIdium. there also the error is coming.

Error is coming in the Constants class
static formatBytes(bytes, decimals) {
if (bytes == 0) return 0.0;
var k = 1024,
dm = decimals <= 0 ? 0 : decimals,
sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
i = (log(bytes) / log(k)).floor();
return (((bytes / pow(k, i)).toStringAsFixed(dm)) + ' ' + sizes[i]);
}

HELP -----

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

1 participant