Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | tests/float: Add test for parsing a float from an empty string. | Damien George | 2016-09-27 |
| | |||
* | py/formatfloat: Fix further cases of buffer overflow in formatting. | Damien George | 2016-03-29 |
| | | | | | Includes extensive test cases to catch hopefully all cases where buffer might overflow. | ||
* | py/formatfloat: Fix buffer overflow when formatting tiny numbers. | Damien George | 2016-03-15 |
| | |||
* | test/string_format_fp30: Variant of string_format for 30-bit stuffed float. | Paul Sokolovsky | 2016-03-06 |
| | |||
* | test/float2int_fp30: Variant of float2int for 30-bit stuffed float. | Paul Sokolovsky | 2016-03-06 |
| | |||
* | float/string_format: Split large test in 2. | Paul Sokolovsky | 2016-02-13 |
| | |||
* | test/float2int: Make test output clearer. | Paul Sokolovsky | 2016-02-13 |
| | |||
* | tests: Fix math_fun_special test so it passes with single prec float. | Damien George | 2016-01-08 |
| | |||
* | tests: Allow float tests to run when MATH_SPECIAL_FUNCTIONS is disabled. | Damien George | 2016-01-08 |
| | |||
* | py/modmath: Add domain error checking to sqrt, log, log2, log10. | Michael Buesch | 2015-12-12 |
| | | | | | These functions will raise 'ValueError: math domain error' on invalid input. | ||
* | tests/float/string_format: Add testcase for incorrect rounding for %f. | Paul Sokolovsky | 2015-11-22 |
| | |||
* | py: Catch all cases of integer (big and small) division by zero. | Damien George | 2015-10-01 |
| | |||
* | tests: Add further tests for mpz code. | Damien George | 2015-10-01 |
| | |||
* | stmhal: fix single precision float printing error | Dave Hylands | 2015-09-11 |
| | | | | Fixes #1435. | ||
* | py/lexer: Properly classify floats that look like hex numbers. | Damien George | 2015-09-07 |
| | | | | Eg 0e0 almost looks like a hex number but in fact is a float. | ||
* | tests: Add a few tests for bool, bytearray, float to improve coverage. | Damien George | 2015-08-29 |
| | |||
* | tests: Add more tests to improve coverage, mostly testing exceptions. | Damien George | 2015-08-21 |
| | |||
* | modbuiltins: Implement round() to precision. | Sebastian Plamauer | 2015-07-19 |
| | |||
* | py: Implement second arg for math.log (optional value for base). | Damien George | 2015-06-13 |
| | |||
* | tests: Add some tests for printing floats to improve coverage. | Damien George | 2015-05-28 |
| | |||
* | py: Remove unnecessary extra handling of padding of nan/inf. | Damien George | 2015-05-28 |
| | | | | | | | C's printf will pad nan/inf differently to CPython. Our implementation originally conformed to C, now it conforms to CPython's way. Tests for this are also added in this patch. | ||
* | py: Implement mp_format_float for doubles and use where appropriate | stijn | 2015-05-17 |
| | | | | | | | This allows using (almost) the same code for printing floats everywhere, removes the dependency on sprintf and uses just snprintf and applies an msvc-specific fix for snprintf in a single place so nan/inf are now printed correctly. | ||
* | py: Fix printing of complex number when imaginary part is nan | stijn | 2015-05-13 |
| | |||
* | modstruct: Rename module to "ustruct", to allow full Python-level impl. | Paul Sokolovsky | 2015-05-04 |
| | |||
* | py: Fix printing of "inf" and "nan" floating point values. | Damien George | 2015-04-22 |
| | |||
* | tests: Add tests to exercise lexer; and some more complex number tests. | Damien George | 2015-04-04 |
| | |||
* | tests: Add missing tests for builtins, and many other things. | Damien George | 2015-04-04 |
| | |||
* | tests: Add tests for SyntaxError, TypeError, and other missing things. | Damien George | 2015-03-25 |
| | | | | This is intended to improve coverage of the test suite. | ||
* | tests: Add some more tests for complex numbers and ure module. | Damien George | 2015-03-14 |
| | |||
* | tests: Add tests for things that are not already tested. | Damien George | 2015-03-12 |
| | | | | The aim here is to improve coverage of the code. | ||
* | tests: Add tests for boundmeth; and bignum cmp, unary, float, error. | Damien George | 2015-03-03 |
| | |||
* | tests: Skip special math fun tests when math module exists but not funs. | stijn | 2015-03-03 |
| | |||
* | tests: Add tests for builtins: all, any, sum, abs. | Damien George | 2015-03-02 |
| | |||
* | tests: Add tests for op special meths, ubinascii, complex. | Damien George | 2015-03-02 |
| | |||
* | tests: Add test for math special functions. | Damien George | 2015-02-22 |
| | |||
* | py: Parse big-int/float/imag constants directly in parser. | Damien George | 2015-02-08 |
| | | | | | | | | | Previous to this patch, a big-int, float or imag constant was interned (made into a qstr) and then parsed at runtime to create an object each time it was needed. This is wasteful in RAM and not efficient. Now, these constants are parsed straight away in the parser and turned into objects. This allows constants with large numbers of digits (so addresses issue #1103) and takes us a step closer to #722. | ||
* | tests: Add test for cmath module. | Damien George | 2015-02-02 |
| | |||
* | tests: Make float/int_power.py pass on pyboard/single prec float. | Damien George | 2015-01-29 |
| | |||
* | tests: Add some tests to improve coverage. | Damien George | 2015-01-29 |
| | | | | | Used gcov to find some parts of vm.c, runtime.c, obj.c that were not covered by any tests. Still need to use gcov more thoroughly. | ||
* | py: Add support for floats in mp_binary_{get,set}_val() | David Steinberg | 2015-01-27 |
| | | | | - This then provides support for floats in the struct package | ||
* | tests: Update float2int tests for new range classifications | David Steinberg | 2015-01-24 |
| | | | | | - Tests vary based on build configuration (32/64-bit and internal int type). - Added tests for exceptions raised on overflow of int type. | ||
* | lib/libm: Add frexp and modf functions; use in stmhal; add tests. | Damien George | 2015-01-22 |
| | | | | Addresses issue #1081. | ||
* | tests: Separate out test cases that rely on float support to float/ dir. | Damien George | 2015-01-08 |
| | |||
* | py: Temporary fix for conversion of float to int when fits in small int. | Damien George | 2015-01-07 |
| | | | | Addresses issue #1044 (see also #1040). Could do with a better fix. | ||
* | py: Raise exception if trying to convert inf/nan to int. | Damien George | 2015-01-02 |
| | |||
* | py: Fix float to int conversion for large exponents. | David Steinberg | 2015-01-02 |
| | |||
* | objstr: Fix %d-formatting of floats. | Paul Sokolovsky | 2014-12-31 |
| | |||
* | py: Partially fix float to int conversion. | Paul Sokolovsky | 2014-12-30 |
| | | | | | | | This fixes conversion when float type has more mantissa bits than small int, and float value has small exponent. This is for example the case of 32-bit platform using doubles, and converting value of time.time(). Conversion of floats with larg exponnet is still not handled correctly. | ||
* | lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. | Damien George | 2014-12-18 |
| | | | | | | | | | acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!). | ||
* | tests: Split out float test from builtin_round.py. | Damien George | 2014-11-29 |
| |