Re: eu number representation
- Posted by bernie Apr 04, 2009
- 825 views
DerekParnell said...
bernie said...
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.