Micropython math library?

Hello,
Could anyone please whether math library is part of the Xbee3 micropython or not?
I am using version 1.10 and it seems like it’s missing

>>> help(‘modules’)
main io time uos
array json ubinascii ustruct
binascii machine uerrno utime
builtins micropython uhashlib xbee
errno os uio
gc struct ujson
hashlib sys umachine
Plus any modules on the filesystem

And I am getting this error when I import it in my code and run it on the Xbee3 module
ImportError: no module named ‘math’

Thanks.

If I were to guess, the math module was left out intentionally. This could probably be added as a feature request.

That’s a good guess. I tried to import the library from the micropython unix port, but it is a dummy one.

The issue still persists in 2026, even though the math module seems to be added in the xbee library.
On pycharm everything works fine and project builds, but
I do not see it on the module after the deployment of the code and the app crashes at execution.

The math module is not part of the XBee imports. You would need to import it from Python in general and copy it to the modules Lib directory.

Just in case others arrive on this thread to look for a solution.
Unforthunately it is not possible on xbee devices.