.-
help for ^inbase^, ^inten^                      @net:from http://www.stata.com/users/wgould!(http://www.stata.com/users/wgould)@
.-

Base conversion
---------------

	^inbase^ #1 #2

	^inten^  #1 #2

where   #1 is the base and #2 the number to be converted.
        #1 must be between 2 and 62, inclusive.

Examples:  
	^inbase 16 29^
	^inten  16 1d^


Description
-----------

^inbase^ converts decimal numbers to the specified base.

^inten^ converts numbers in a specified base to decimal numbers.


Examples
--------

    . ^inbase 16 29^
    1d

    . ^inbase 2 29^
    11101

    . ^inten 16 1d^
    29

    . ^inten 2 11101^
    29



Saved results
-------------

^inten^ returns
    scalar ^r(ten)^    containing number in base 10

^inbase^ returns
    local  ^r(base)^   containing number in specified base


Bugs
----

    1.  ^inten^ does not verify that you do not use digits beyond the base.
        for instance, you can type ^inten 16 1g^.


Author
------

    William Gould, Stata Corp.


Date
----

    Tue Nov  9 14:55:28 CST 1999  first written
    Sat Mar  4 09:21:11 CST 2000  updated
