Re: [R] converting decimal - hexadecimal

From: Dan Gunter <dkgunter_at_lbl.gov>
Date: Sat 09 Sep 2006 - 05:04:59 GMT

Romain Lorrilliere wrote:
> Hi,
>
> do you know, a method to convert an decimal value (integer) to the
> corresponding hexadecimal value ?
>
> thinks for help.
>
> Romain
>
>

You mean "representation", not "value"; the value doesn't change. One method is sprintf with the "%x" formatting code.

-Dan

-- 
Dan Gunter. voice:510-495-2504 fax:510-486-6363 dsd.lbl.gov/~dang

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat Sep 09 15:09:44 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 09 Sep 2006 - 05:30:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.