microbit.scale()
to return a float if the arguments for the to
parameter are floats.
#770
Milestone
microbit.scale()
to return a float if the arguments for the to
parameter are floats.
#770
This is to mirror the change in V2:
microbit.scale()
returns a float from integer inputs microbit-foundation/micropython-microbit-v2#121If any of the values inside the tuple for the
to
paramenter are floats, thenmicrobit.scale()
will return a float, otherwise it will return an integer.For example:
The text was updated successfully, but these errors were encountered: