AtomSoft
Well-Known Member
Hey guys i got stuck here heh
I have a number like 255 and want to split it to
2,5,5
how?
Im trying this:
tH = (temp4 / 100) + 0x30;
tT = ((temp4 % 100) / 10) + 0x30;
tO = (((temp4 % 100) / 10) % 10) + 0x30;
If temp4 = 004 aka 0x04 my variables are
tH = 0;
tT = 0;
tO = 0;
any thoughts on why?
I have a number like 255 and want to split it to
2,5,5
how?
Im trying this:
tH = (temp4 / 100) + 0x30;
tT = ((temp4 % 100) / 10) + 0x30;
tO = (((temp4 % 100) / 10) % 10) + 0x30;
If temp4 = 004 aka 0x04 my variables are
tH = 0;
tT = 0;
tO = 0;
any thoughts on why?