feat(new tool) Floating Point Number Converter #1348
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I added a tool to convert between decimal numbers and floating point binary numbers (IEEE 754). This can be done in both 32 and 64 bit format and the tool also shows the hexadecimal representation, the actually stored value and the error due to rounding during conversion when converting from decimal to binary.
I hope I did everything correctly and to JS as well as this project's standards, I don't know much about JS and for the layout etc. just pieced together pieces from other tools.
I also added the locales for English and German as those are languages I personally know. If I should add translations for the other languages as well please let me know, but I will do it using DeepL / Google Translate.
If someone knows how to remove the vertical space below the switch here, I would be glad to implement it. I could not figure out how and it annoys me a bit: