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
Is your feature request related to a problem? Please describe.
I am trying to build a counter with a micro:bit that represents binary numbers using Neopixels, it is currently difficult to convert an integer from base10 to base2, though that is easy in the browser. You can just pass the radix in as a param, but the make code platform number.toString takes no args.
Describe the solution you'd like
Reflect the toString functionality that is standard in the browser
Describe alternatives you've considered
A new function for going from base 10 to a base 2 string could work
Additional context
Thanks!
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I am trying to build a counter with a micro:bit that represents binary numbers using Neopixels, it is currently difficult to convert an integer from base10 to base2, though that is easy in the browser. You can just pass the radix in as a param, but the make code platform number.toString takes no args.
Describe the solution you'd like
Reflect the toString functionality that is standard in the browser
Describe alternatives you've considered
A new function for going from base 10 to a base 2 string could work
Additional context
Thanks!
The text was updated successfully, but these errors were encountered: