1. eu number representation
- Posted by bernie Apr 04, 2009
- 1069 views
How come printf allows printing an OCTAL number. But there is no way to represent a OCTAL number in Euphoria ?
2. Re: eu number representation
- Posted by jimcbrown (admin) Apr 04, 2009
- 1013 views
How come printf allows printing an OCTAL number. But there is no way to represent a OCTAL number in Euphoria ?
There is no way to get() an OCTAL number either!
3. Re: eu number representation
- Posted by DerekParnell (admin) Apr 04, 2009
- 1028 views
How come printf allows printing an OCTAL number. But there is no way to represent a OCTAL number in Euphoria ?
The Euphoria printf is not much more than a wrapper around the C printf function. Thus what you get from printf is the C standard library function which includes octal output along with a few other obscure things.
We could write our own printf() so that octal wasn't available, and this would also allow new formatting options that are more Euphoria specific.
By the way, is there any really good reason to want octal input/output and literals?
4. Re: eu number representation
- Posted by bernie Apr 04, 2009
- 1045 views
How come printf allows printing an OCTAL number. But there is no way to represent a OCTAL number in Euphoria ?
The Euphoria printf is not much more than a wrapper around the C printf function. Thus what you get from printf is the C standard library function which includes octal output along with a few other obscure things.
We could write our own printf() so that octal wasn't available, and this would also allow new formatting options that are more Euphoria specific.
By the way, is there any really good reason to want octal input/output and literals?
No, I was just working on something and I wanted to use octal.
I thought there was a O option in the numbering system.
I can just do the conversions inn my code.