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

Leading and Trailing spaces in >FLOAT #8

Closed
steverpalmer opened this issue Dec 2, 2015 · 1 comment
Closed

Leading and Trailing spaces in >FLOAT #8

steverpalmer opened this issue Dec 2, 2015 · 1 comment

Comments

@steverpalmer
Copy link
Collaborator

When V0.13 was released, Peter Falth reported a problem with to-float-test.4th. Specifically:

INCORRECT RESULT: t{  S"  9"   >FLOAT  ->   FALSE     }t    \ Leading space 
WRONG NUMBER OF FP RESULTS: t{  S"  9"   >FLOAT  ->   FALSE     }t    \ Leading space 
INCORRECT RESULT: t{  S" 9 "   >FLOAT  ->   FALSE     }t    \ Trailing space 
WRONG NUMBER OF FP RESULTS: t{  S" 9 "   >FLOAT  ->   FALSE     }t    \ Trailing space

The argument is that >FLOAT is a way to read in FP numbers from different sources and is specified
to allow different FP representations. It even allows a string of blanks to be
interpreted as zero. A leading or trailing space should not disqualify it.

@steverpalmer
Copy link
Collaborator Author

This issue has been duplicated in issue #16, so will be closed.

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

No branches or pull requests

1 participant