OpenAxiom 1.3.0 and higher now supports literal numbers expressed
in a radix other than 10 (both in the interpreter and in library).

For decimal numbers, the syntax is as usual.  For base other than 10,
you have to specify the radix first (as a decimal number) followed
by the letter 'r', then followed by digits expressing the number.
E.g.

(1) -> 16rdeadbeef
   (1)  3735928559
                                                        Type: PositiveInteger
(2) -> 16rcafebabe
   (2)  3405691582
                                                        Type: PositiveInteger
(3) -> 2r111000101001
   (3)  3625
                                                        Type: PositiveInteger

-- Gaby

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
open-axiom-devel mailing list
open-axiom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel

Reply via email to