<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/float, branch 2.2.0rc1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.0rc1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.0rc1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-07-25T01:49:22+00:00</updated>
<entry>
<title>py: Implement raising a big-int to a negative power.</title>
<updated>2017-07-25T01:49:22+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-07-25T01:49:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=04552ff71b6c722b21597d93481f024c72457cef'/>
<id>urn:sha1:04552ff71b6c722b21597d93481f024c72457cef</id>
<content type='text'>
Before this patch raising a big-int to a negative power would just return
0.  Now it returns a floating-point number with the correct value.
</content>
</entry>
<entry>
<title>py/modmath: Check for zero division in log with 2 args.</title>
<updated>2017-07-03T16:15:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-07-03T16:15:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6b8b56f8596d3dde544a72d037e9feddd9f70938'/>
<id>urn:sha1:6b8b56f8596d3dde544a72d037e9feddd9f70938</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/formatfloat: Fix number of digits and exponent sign when rounding.</title>
<updated>2017-06-13T03:36:56+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-13T03:36:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6ed4581f545069488446682ee9b052798626327d'/>
<id>urn:sha1:6ed4581f545069488446682ee9b052798626327d</id>
<content type='text'>
This patch fixes 2 things when printing a floating-point number that
requires rounding up of the mantissa:
- retain the correct precision; eg 0.99 becomes 1.0, not 1.00
- if the exponent goes from -1 to 0 then render it as +0, not -0
</content>
</entry>
<entry>
<title>tests/float/builtin_float_minmax: PEP8 fixes.</title>
<updated>2017-06-08T14:23:22+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-06-08T14:23:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e09420075017423f17073347eacad45ef4d3b860'/>
<id>urn:sha1:e09420075017423f17073347eacad45ef4d3b860</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/float: Convert "sys.exit()" to "raise SystemExit".</title>
<updated>2017-06-08T04:00:57+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-08T04:00:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fde54350a8d740308d12c2ea4c65fa5bea4f186a'/>
<id>urn:sha1:fde54350a8d740308d12c2ea4c65fa5bea4f186a</id>
<content type='text'>
The latter is shorter and simpler because it doesn't require importing the
sys module.
</content>
</entry>
<entry>
<title>tests/float: Add tests for hashing float and complex numbers.</title>
<updated>2017-04-04T02:14:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-04-04T02:14:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=677fb3101525bc655d9fd548b8c2cecfc8deefd2'/>
<id>urn:sha1:677fb3101525bc655d9fd548b8c2cecfc8deefd2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/float/byte*_construct: Skip on missing array module.</title>
<updated>2017-04-02T21:17:43+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-02T21:17:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=28876d3902c84774018f81204f81b6cc01784855'/>
<id>urn:sha1:28876d3902c84774018f81204f81b6cc01784855</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/float: Add tests for round() of inf, nan and large number.</title>
<updated>2017-03-24T00:00:45+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-23T23:56:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bfb48c1620256b883804c5998f91b8a897b4b6ff'/>
<id>urn:sha1:bfb48c1620256b883804c5998f91b8a897b4b6ff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/float: Add tests for math funcs that return ints.</title>
<updated>2017-03-23T12:54:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-23T12:54:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bacb52aa2dbf8dcb1e96aace28a85108ef0a8245'/>
<id>urn:sha1:bacb52aa2dbf8dcb1e96aace28a85108ef0a8245</id>
<content type='text'>
One should test bigint, inf and nan to make sure all cases are covered.
</content>
</entry>
<entry>
<title>tests/float: Make various tests skippable.</title>
<updated>2017-03-08T23:11:05+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-03-08T23:11:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a0cbc108ba9dbdd4cc223486561f3e6a347e2d0a'/>
<id>urn:sha1:a0cbc108ba9dbdd4cc223486561f3e6a347e2d0a</id>
<content type='text'>
</content>
</entry>
</feed>
