Fractional Decimal to binary conversions(and back)

146 views
Skip to first unread message

D.G.

unread,
Oct 4, 2009, 5:30:35 PM10/4/09
to speedcrunch
I was interested about fractional decimal in other bases so of course
I turned to my (new) favorite calculator speedcrunch and observed the
following:


0x0.1999E
0b01111E
0x0.xxxxxxxE where x=[0-9] and base is decimal,binary, hex with or
without the decimal point
all return 0(zero) with the color being blue without the decimal, and
being black after the the decimal point if one is included.

0.1 in decimal returns
0x0.1999999999999999A in hex
which is fine

entering 0x0.1999999999999999A returns:
Error - invalid expression and the numbers are blue and the letter A
is highlighted green

also
0d0.111111E returns the invalid expression error also, but is
highlighted black.

I know that the design goals for different calculators are different,
but you can do fractional binary/octal/hex to decimal and back in
Gnome Calculator. I think other then the above and a bit manipulator,
your calculator is superior to me. Before or when/if you add a
control to edit matrices, could you also add a control for bit
manipulation?

D.G.

unread,
Oct 4, 2009, 7:58:15 PM10/4/09
to speedcrunch
After compiling the latest source and looking up some stuff about
integer math
0x?.xxxxxxxE
returning ? makes sense, sorry to waste your time.

Thanks again for this program!
Reply all
Reply to author
Forward
0 new messages