Skip to content
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

>FLOAT with leading and trailing spaces #16

Open
gerryjackson opened this issue Jan 18, 2016 · 0 comments
Open

>FLOAT with leading and trailing spaces #16

gerryjackson opened this issue Jan 18, 2016 · 0 comments

Comments

@gerryjackson
Copy link
Owner

gerryjackson commented Jan 18, 2016

FLOAT is tested in the provisional floating point test package src/fp/to-float-test.4th. This tests for compliance with the BNF specification for >FLOAT in section 12.6.1.0558 of the standard which does not allow for leading and trailing spaces in the input string. This is somewhat inconsistent given that a "string of blanks should be treated as a special case representing zero". This leads to at least one system failing a few tests. Options are:

  1. Permit leading and trailing spaces but report that the system ignores them. This is in line with issue Reporting of Forth Characteristics #2 'Reporting of Forth characteristics'
  2. Leave alone

Given the provisional nature of the floating point tests and the fact that very few systems seem to have tried these tests, this will be left for now in the hope of further feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant