Pages: [1]   Go Down
Author Topic: How can i turn a Decimal nr. into a hexadecimal nr  (Read 965 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
I like to build things
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hej,

how is it possible to turn a Decimal nr. into a hexadecimal nr in the programm,

i get values in dezi and have to change it into hexa fore playing songs at the mp3 player.....

i hope you get my question

thx

thomas
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure what you mean.  What do you have to do with the hex number?  printHex(num) will print the number as a hex string over the serial port.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
I like to build things
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


thats not what im surcing fore.

i count (something) so i get decimal numbers
than i want to play a song from a mp3 player, so i thats why I have to turn the tracknumber (which i get out of the count) from a decimal in to a hexadecimal number,

a bad discription again....
Logged

Pages: [1]   Go Up
Jump to: