Re: numbers written in ascii... looking for all common (and some uncommon) forms....

From: Beth (BethStone21_at_hotmail.NOSPICEDHAM.com)
Date: 02/21/04


Date: Sat, 21 Feb 2004 17:58:33 -0000

Bx.C wrote:
> with # denoting a digit of a particular numbering base (bin, oct,
dec, hex),
> can i get some input from ya'll regarding what would be common ways
of
> formatting numbers? for instance, i've seen the following forms:
>
> oct
> /###

Ummm, if you mean C syntax above, then it's "\", not "/"...

> hex
> 0x##
> 0x####
> 0x########
> #h
> 0#h

>From other non-x86 architectures (but also found in some of the x86
assemblers to kind of "accomodate" this :), there's also:

$###

> dec
> #
> #d
>
> bin
> ########b

Also (from HLA):

%#############

Plus, HLA and RosAsm employ an "underscore" thing where underscores
can be added to separate out the digits (a bit like using a comma ","
(or "." for some non-English languages :) as a "thousands seperator :)
but that these underscores don't actually effect the value at
all...they are just there as a "visual aid" in reading the numbers
back...

Beth :)