Konversikan atau cetak bilangan bulat dalam format heksadesimal, dengan digit sebanyak yang diperlukan untuk menampilkan bilangan terbesar, gunakan angka nol di depan seperlunya.
as.hexmode(x)<p></p><p># S3 method for hexmode
as.character(x, …)</p><p># S3 method for hexmode
format(x, width = NULL, upper.case = FALSE, …)</p><p># S3 method for hexmode
print(x, …)</p>
| Parameter | Deskripsi |
|---|---|
x |
An object, for the methods inheriting from class "hexmode". |
width |
NULL or a positive integer specifying the minimum field width to be used, with padding by leading zeroes. |
upper.case |
a logical indicating whether to use upper-case letters or lower-case letters (default). |
… |
further arguments passed to or from other methods. |
# NOT RUN {
i <- as.hexmode("7fffffff")
i; class(i)
identical(as.integer(i), .Machine$integer.max)
hm <- as.hexmode(c(NA, 1)); hm
as.integer(hm)
# }