Home/Support/Support Forum/micropython math library?

micropython math library?

0 votes
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'

asked Jul 22, 2019 in MicroPython by amirna2 New to the Community (1 point)

Please log in or register to answer this question.

2 Answers

0 votes
If I were to guess, the math module was left out intentionally. This could probably be added as a feature request.
answered Jul 23, 2019 by DigiFan23 Veteran of the Digi Community (278 points)
0 votes
That’s a good guess. I tried to import the library from the micropython unix port, but it is a dummy one.
answered Jul 23, 2019 by amirna2 New to the Community (1 point)