CorentinTh / it-tools

Collection of handy online tools for developers, with great UX.
https://it-tools.tech
GNU General Public License v3.0
23.15k stars 2.8k forks source link

feat(new tool) Floating Point Number Converter #1348

Open Rapha149 opened 1 month ago

Rapha149 commented 1 month ago

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:

screenshot

vercel[bot] commented 1 month ago

@Rapha149 is attempting to deploy a commit to the Corentin Thomasset's Team Team on Vercel.

A member of the Team first needs to authorize it.

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarCloud

Rapha149 commented 1 month ago

So, I fixed all the convention errors and warnings. I didn't know about the commands pnpm lint and pnpm typecheck before.

Regarding the security warning from SonarCloud: I don't know enough about Regex to determine whether the expression I used to remove the trailing zeros is vulnerable to backtracking.

And lastly, I'm guessing the failed Vercel check is something I can't fix.