forked from swissmicros/SDKdemo
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The number #7D
is interpreted as decimal #7
#371
Comments
c3d
added a commit
that referenced
this issue
Oct 1, 2023
This is a quick respin after 0.4.4 to fix various cosmetic, and a relatively serious editor corruption issue related to the implementation of `Undo` that impedes usage of complex numbers. Bugs: - Editor corruption due to saving undo stack while editing (#386) - Correctly parse editors and symbols (#372) - Avoid emitting extra newlines for consecutive comments (#387) - Integers: Do not recognize `#7D` as decimal (#371) - User interface glitches (#388) - Connect the `Undo` key (#380) Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
c3d
added a commit
that referenced
this issue
Jan 19, 2024
Check that `#7D` is not parsed as a decimal value. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
c3d
added a commit
that referenced
this issue
Jan 20, 2024
Check that `#7D` is not parsed as a decimal value. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
c3d
added a commit
that referenced
this issue
Jan 20, 2024
Check that `#7D` is not parsed as a decimal value. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
c3d
added a commit
that referenced
this issue
Jan 21, 2024
The focus of this release was to reactivate the test suite and fix the problems that were found activating it. [![Recording of a full run of the test suite](https://img.youtube.com/vi/aHW2GcX5S6o/maxresdefault.jpg)](https://www.youtube.com/watch?v=aHW2GcX5S6o&list=PLz1qkflzABy-Cs1R07zGB8A9K5Yjolmlf) New features: - HMS and DMS operations - unit: Rendering of `dms` and `hms` units - Allow `·` as a multiplication sign in equations - ui: Display 'E' cursor inside parentheses - graphics: Accept based integers as position for `DrawText` - complex: Add setting to switch between `2+3i` and `2+i3`. Bug fixes: - decimal: Fix precision loss for addition with carry - Base: limit range of bases to 2-36 - files: Do not add a trailing zero when reading a text file - decimal: Adjust `MinimumSignificantDigits` behaviour - units: Do not auto-simplify `1.0` during conversion - decimal: Normalize parsed numbers - solver: Fix sign error in epsilon exponent for solve/integrate - parser: Accept `x!` as input - simulator: Avoid faulty break-through in switch statement - complex: Make tag higher-priority than complex - editor: Adjust cursor and select correctly during replace - decimal: Fix display of 0.2 in NoTrailingDecimal mode - complex: Save `this` in a GC pointer when it can move - arithmetic: Do not fail because of surrounding error - decimal: Clamp int32 conversions from decimal - commands: Parse `exp10` correctly in expressions - decimal: Avoid infinite loop computing `expm1` - ids: Do not allow parsing of structures - dmcp: Make sure the tests don't block on `wait_for_key` - decimal: Use correct angle unit for negative gamma values Improvements: - settings: Add classes that save/restore a given setting - Add `XSHIFT` to shift to XSHIFT state directly - Add NOSHIFT constant to simplify test writing - ui: Add a variant of `close_editor` without trailing zero - decimal: Cache gamma_ck values (accelerate gamma and lgamma) - Replace magic constant `-1` with `EXIT_PGM` - doc: Record performance data for 1000 iterations of SumTest - decimal: Add tracing for gamma / lgamma function New tests: - Add tests for arithmetic truncation on short bitsizes - Add tests for on-line help - Add test for plotting flags - Add test for Unicode to text conversions - Add test for rectangular complex display options - Add tests for plot scaling functions - Add tests for the sorting functions - Add test for parsing text with quotes inside - Add test for file-based `STO` and `RCL` - Add test for 2^256 computation (buf #460) - Fix indentation of `[PASS]` or `[FAIL]` for UTF8 characters - Add tests for units and conversions - Add a keyboard test checking the single-colon insert in text - Add test for i*i=-1 auto-simplification - Add basic test for numerical integration - Add test for fraction formats - Add solver test - Add missing tests - Add test for immediate `STO` (#390) - Add tests for the `Cycle` command - Add test for catalog feature - Add test for "smart" keyboard shortcuts introduced in 0.4.6 - Add regression test for #371 - Add tests for editor operations - Test stack operations - Add test for `GXor`, `GOr` and `GAnd` - Add test for `ResetModes` - Add plotting test for every decimal function - Add image checking for graphical tests - Add tests for graphic and text drawing commands - Make it possible to individually run tests. - Add plotting tests - Add test parsing the various spellings for commands Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even when the base is 16,
#7D
is mistakenly interpreted as decimal due to theD
suffix.Getting these based number suffixes right is a bit tough. There is a clear trade-off between an inherently ambiguous syntax (at least if you go case-insensitive, which was not the case for the original RPL). The correct fix is probably to change the way the end of number is found.
The text was updated successfully, but these errors were encountered: