Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Numeric literals in other than base 10

2 views
Skip to first unread message

robin

unread,
Aug 27, 2009, 12:07:20 PM8/27/09
to
"James Harris" <james.h...@googlemail.com> wrote in message
news:bc3607b3-7fdd-43fd...@32g2000yqj.googlegroups.com...
On 22 Aug, 10:27, David <71da...@libero.it> wrote:

>They look good - which is important. The trouble (for me) is that I
>want the notation for a new programming language and already use these
>characters. I have underscore as an optional separator for groups of
>digits - 123000 and 123_000 mean the same. The semicolon terminates a
>statement. Based on your second idea, though, maybe a colon could be
>used instead as in

XPL uses "(2)1011" for base 4,
"(3)03212" for octal,
"(4)0741" for base 16.

PL/I uses 8FXN for numeric hex and X suffix for a hex character constant.


0 new messages