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

The "pick random" function should accept strings #167

Open
adroitwhiz opened this issue Mar 8, 2023 · 0 comments
Open

The "pick random" function should accept strings #167

adroitwhiz opened this issue Mar 8, 2023 · 0 comments
Assignees
Labels
compatibility Bugs that cause Leopard's behavior to differ from Scratch's

Comments

@adroitwhiz
Copy link
Collaborator

Scratch dynamically decides whether the "pick random" function should return an integer or a float based on whether or not its numeric inputs contain any decimal points. This is done with the string representation of the number, so e.g. "1.000" still counts as decimal.

Fixing this requires recoding the random function to accept strings.

@towerofnix towerofnix added the compatibility Bugs that cause Leopard's behavior to differ from Scratch's label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Bugs that cause Leopard's behavior to differ from Scratch's
Projects
None yet
Development

No branches or pull requests

2 participants