Hi there,
first i have to admit that i'm no trained programmer at all. So, sorry if I cannot express the problem correctly.
I have a given String:
String TAG = "320F3550AE";
in the following code I need a long long with this String as input.
It works if i do it this way:
long long x = 0x320F3550AE;
So I'm looking for a way to transfer the String information to the long long in a way that it represents the same as in long long x = 0x320F3550AE;.
Can someone please tell me how to do it?
I tried it with "Stoll" and other ways but nothing works out.
Thanks in advance!
Wolf
Ok, thanks for all the help. Please let's not start to question the needs. I know where that leeds. But to your questions:
I need it, so i can convert the HEX to the number it represents to show it on a display.
I have it all working but for the connection beteen the String and the long long.
Since the number is in hexidecimal, you could separate the first two character and the remaining 8 characters, do the conversion separately, then re-combine with a bit of multiplication and addition.
Nano does not support printing long long, you will need to split it up a bit.