8000 Remove decimal point from scientific notation. Fixes #476 by therontarigo · Pull Request #477 · laurentlb/shader-minifier · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove decimal point from scientific notation. Fixes #476 #477

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

Closed
wants to merge 2 commits into from

Conversation

therontarigo
Copy link
Contributor

No description provided.

@therontarigo
Copy link
Contributor Author

Please note I have not yet updated the compression tests - whoever currently has a working setup is welcome to do this.

@therontarigo
Copy link
Contributor Author

The existing floatToS formatting has various problems including in some cases extraneous digits, lost precision, and float32-representable constants being rounded to zero. When rewriting it I found too many edge-cases to fix. So, for now this is the bare-minimum to parse existing scientific notations and reprint them without decimal points.

@laurentlb
Copy link
Owner

Thanks!
Added compression tests and pushed in 865ff9a

@laurentlb laurentlb closed this Apr 5, 2025
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

Successfully merging this pull request may close these issues.

2 participants
0