On Jan 28, 2005, at 10:57 AM, Paul Salyers wrote:
I know the below code will convert a hex number to dec.
put baseConvert(tmpVar,16,10) into tmyNumber
like wise will
put baseConvert(tmpVar,10,16) into tmyNumber
convert a dec to hex?
Try it! You can tinker with this using the message box. Remember, baseConvert works on numerals.
You can also get some more info from the baseConvert() entry in the Dictionary.
The numerical value (number) of the numeral is limited to 4294967295 or 2147483647 (decimal) depending on your Revolution version.
You might be interested in trying binary, octal, or (if inspired by Douglas Adam's Hitchhiker series) base 13.
(The answer is yes.)
Dar
**********************************************
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**********************************************_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
