Array copy m1=m2 works only on the first pass.

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
User avatar
dhylands
Posts: 3422
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Array copy m1=m2 works only on the first pass.

Post by dhylands » Wed Dec 02, 2015 4:27 am

There was a bug in the floating point print routine that was fixed recently.

With the latest firmware, this prints properly:

Code: Select all

>>> 0.3117148 * 3.20806
1.0

User avatar
JonHylands
Posts: 64
Joined: Sun Dec 29, 2013 1:33 am

Re: Array copy m1=m2 works only on the first pass.

Post by JonHylands » Wed Dec 02, 2015 12:18 pm

I get 1.0 with my MicroPython board.

MicroPython v1.5.1-31-g0786716 on 2015-11-27; PYBv1.0 with STM32F405RG

deanr
Posts: 7
Joined: Sat Nov 28, 2015 12:04 am

Re: Array copy m1=m2 works only on the first pass.

Post by deanr » Thu Dec 03, 2015 12:52 am

The number does seem to work as one when multiplied. It does print 0.0 with "v1.5-134-g5be60d6 on 2015-11-14" .
Just loaded "v1.5.1-58-gb4eccfd on 2015-12-03" and it prints the right answer. Thanks.

Post Reply