-
Notifications
You must be signed in to change notification settings - Fork 99
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 fround word push its result to data stack. #69
Comments
You are right! According to the latest standard here:
Since it returned a rounded "integer" value I assumed it would be on the integer stack. Not so. Fixing this will break any pForth program currently using FROUND. So I will need to make sure users are warned.
No. Even if it was a known issue it would not be rude. I want to improve pForth. So every bug report is helpful. Even questions are helpful because then I know where to improve the documentation. You reported a bug and gave me the fix. I am grateful. |
HMSL uses FROUND. It will need to be changed. |
Good to hear that. And,
I really got courage from your comments. Thank you for giving me good advice! |
It used to push the result to the integer data stack. That was wrong. It should go to the float stack. Fixes #69
It used to push the result to the integer data stack. That was wrong. It should go to the float stack. Fixes #69
Dear Mr. Phil Burk,
I'm a user of pForth and very happy to use it. By the way, I have a question
about the following parts,
Is this the correct behavior? I expected the following behavior,
I would like to think the fround word should push its result to floating point
stack. If this question was a known issue, I did very rudely, so I'm very sorry.
Finally, I modified csrc/pfinnrfp.h to get my expected behavior,
Sincerely,
Hajime Edakawa
The text was updated successfully, but these errors were encountered: