Atan in micropython #1857
-
I currently use the pybricks micropython repo to create my own function inside of the pybricks firmware. But when trying to build the firmware I am getting an error: If anyone could help, I would be gratefull
[...]
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Which hub are you targeting? |
Beta Was this translation helpful? Give feedback.
-
Ah, I see the problem now. Pybricks hubs only use single precision floating point, not double For portability,
should be
or to force single-precision, you can do
(All other uses of |
Beta Was this translation helpful? Give feedback.
Ah, I see the problem now. Pybricks hubs only use single precision floating point, not double
For portability,
should be
or to force single-precision, you can do
(All other uses of
double
should be changed accordingly as well)