Re: Euler Project Problems.

"Ray St. Marie" <[email protected]> Mon, 19 May 2008 23:50:34 -0600
Newsgroups gmane.comp.lang.forth.colorforth
Message-ID <[email protected]>
Dear Albert, and John
Ray, yet again.

On Mon, May 19, 2008 at 11:37 PM, Ray St. Marie <[email protected]> wrote:
> Dear Albert,
>
> : ASCII->BINARY ( char --- double )
> ( Convert a character digit to a binary representation                )
>
>     &0 -
>     DUP 0< OVER 9 > OR ABORT" Not a decimal number"
> ;
>
>
> I'm sure this is the problem. I'm not sure how this word is supposed
> to leave the char as a double?
>
> --
> Raymond St. Marie ii,
> colorforthray.info
>

Albert,

Replacing the above with the version of the word you have in the Dutch
version crashes win32forth.

: ASCII->BINAIR ( char --- double )
( Zet een character cijfer om naar de binaire representatie * )
     &0 - U->D

John,

Confirmed. In the Dutch version of the file we find

0 constant U->D

You are correct, sir. Thank you.

Ray


-- 
Raymond St. Marie ii,
colorforthray.info