open_toontown_panda3d/tests/linmath
rdb 8c8cbeea98 linmath: For repr, use as much precision as needed for roundtrip
Will use as few digits as is necessary to ensure that round-tripping the same number with pstrtod will result in the same vector.  This prevents eg. 3.3 formatting as 3.29999995 while still ensuring that two floats that are not equal (other than nan) are guaranteed to have a different string representation.

Uses a hacky pftoa function that can be abandoned as soon as we adopt C++17, which has to_chars that does what we need

Fixes #1671
2024-08-07 17:24:11 +02:00
..
test_lmatrix3.py tests: add various matrix unit tests 2018-08-19 16:43:34 +02:00
test_lmatrix4.py linmath: fix mat4.get_col3() and mat4.get_row3() when using Eigen 2019-05-02 19:40:23 +02:00
test_lvector2.py linmath: For repr, use as much precision as needed for roundtrip 2024-08-07 17:24:11 +02:00
test_lvector3.py linmath: For repr, use as much precision as needed for roundtrip 2024-08-07 17:24:11 +02:00
test_lvector4.py linmath: For repr, use as much precision as needed for roundtrip 2024-08-07 17:24:11 +02:00