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

[Base Conversion] Incorrect Padding #1451

Open
1 task done
Crafty-Jumper opened this issue Nov 27, 2024 · 0 comments
Open
1 task done

[Base Conversion] Incorrect Padding #1451

Crafty-Jumper opened this issue Nov 27, 2024 · 0 comments
Labels
⚠ Issue with an extension An issue with an extension that is already on the extension store

Comments

@Crafty-Jumper
Copy link

Crafty-Jumper commented Nov 27, 2024

Is there an existing issue for this?

Enter the name of the extension

Base Conversion

Describe the bug of the extension

It's a bit confusing, but if you convert the number 8 from Hex to say, binary/Base-2 it'll be 1000, right? well doing the same with the number 7 returns 111 and not 0111. It's ruining my game!

Steps to reproduce

  1. BaseConversion::ToBase(BaseConversion::ToDecimal("7",16),2) == 111
  2. BaseConversion::ToBase(BaseConversion::ToDecimal("8",16),2) == 1000

GDevelop platform

Web

GDevelop version

5.4.218

Platform info

OS: ChromeOS
Browser: Chrome

Additional context

No response

@Crafty-Jumper Crafty-Jumper added the ⚠ Issue with an extension An issue with an extension that is already on the extension store label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠ Issue with an extension An issue with an extension that is already on the extension store
Projects
None yet
Development

No branches or pull requests

1 participant