LSL-PyOptimizer/lslopt
Sei Lisa d2e64e25a6 Rewrite Mono float to string conversion; fix llDumpList2String
llDumpList2String has changed its behaviour with respect to minus zero. Now it converts -0.0 to a string without the minus sign.

While testing this, we noticed several mismatches in the float to string conversions; the existing routine did not properly convert some values because as we discovered later, it is subject to double rounding; one of them is the built-in round-to-nearest-or-even while getting the first 7 significant digits, and the other is just an increment when the digit is a 5 or more, so round to nearest, ties away from zero, and is performed on the digit past the five or six visible digits that LSL shows.

The new code is a tad easier to understand and more robust.

A first variant of the new code is left commented out for history's sake, and will be removed in the next commit.
2022-05-17 22:28:49 +02:00
..
__init__.py Initial commit. Status so far: 2014-07-26 02:43:44 +02:00
lslbasefuncs.py Rewrite Mono float to string conversion; fix llDumpList2String 2022-05-17 22:28:49 +02:00
lslcommon.py Update copyright year 2021-01-05 23:27:21 +01:00
lsldeadcode.py Update copyright year 2021-01-05 23:27:21 +01:00
lslextrafuncs.py New constants and functions; some refactoring of lslfuncopt 2022-05-13 14:49:18 +02:00
lslfoldconst.py Update copyright year 2021-01-05 23:27:21 +01:00
lslfuncopt.py New constants and functions; some refactoring of lslfuncopt 2022-05-13 14:49:18 +02:00
lslfuncs.py Update copyright year 2021-01-05 23:27:21 +01:00
lslinliner.py Update copyright year 2021-01-05 23:27:21 +01:00
lsljson.py Update copyright year 2021-01-05 23:27:21 +01:00
lsllastpass.py Update copyright year 2021-01-05 23:27:21 +01:00
lslloadlib.py Update copyright year 2021-01-05 23:27:21 +01:00
lsloptimizer.py Update copyright year 2021-01-05 23:27:21 +01:00
lsloutput.py Update copyright year 2021-01-05 23:27:21 +01:00
lslparse.py Allow //pragma inline or /*pragma inline*/ for inlining a function 2021-10-17 20:29:22 +02:00
lslrenamer.py Add Pop to the list of idents that GetNextShortest can't generate 2021-01-05 23:27:49 +01:00