You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extension adds the ability to round to any number. Useful for things like a grid system.
How to use the extension
The extension is used through a function RoundToAnyNumber::RoundTo() where the first number is the number to be rounded and the second number is the number to round to.
It works based on this formula: round(Number1 / Number2) * Number2
Examples:
Rounding 12345 to 100 will give 12300.
Rounding 720 to 300 will give 600.
Rounding 7382.8129 to 0.29 will give 7 382.82 (which is a multiple of 0.29).
Hi @NiQsterVX! 👋 This submission has passed all required tests, and has been moved to a PR as part of our submission pipeline. You can see the progress of your submission on this page. Community submissions are not reviewed by default, so your extension should be added once we've checked that your submission doesn't contain malicious code without further intervention on your part. If you wish for your extension to be reviewed (and thereby moved to the list of reviewed extensions), please follow the instructions written on the README. Thanks again for your contribution to GDevelop!
Description
This extension adds the ability to round to any number. Useful for things like a grid system.
How to use the extension
The extension is used through a function
RoundToAnyNumber::RoundTo()
where the first number is the number to be rounded and the second number is the number to round to.It works based on this formula:
round(Number1 / Number2) * Number2
Examples:
Rounding 12345 to 100 will give 12300.
Rounding 720 to 300 will give 600.
Rounding 7382.8129 to 0.29 will give 7 382.82 (which is a multiple of 0.29).
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
Round to any number example.zip
Extension file
RoundToAnyNumber.zip
The text was updated successfully, but these errors were encountered: