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

Update operators.js #3133

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

eYuM-coder
Copy link

Resolves

What Github issue does this resolve (please include link)?

Proposed Changes

Describe what this Pull Request does
This Pull Request adds a toFixed block to fix decimals to a certain number in any case that are variables, or regular numerical inputs.

Reason for Changes

Explain why these changes should be made
These changes are to be made so that users do not have to make their toFixed workarounds due to the limitations of not having a toFixed block built into Scratch.

Test Coverage

Please show how you have added tests to cover your changes
This was mainly tested as a custom extension that I made that includes this new block on PenguinMod to confirm that it works as intended, do note that when developing this block, do not return the fixed decimal as a float value, it breaks it, I found this out the hard way.

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.

1 participant