I have been looking to concat two int but with no luck.
My project is reading from a RTC module I have the time in hour & minutes.
The Var below gets the time from the clock lets say the time is 13:42
int NewTimeHr = now.hour();
int NewTimeMin = now.minute();
I try to concat the two numbers together by doing the following (this found on another post)
int NowTime = NewTimeHr*10+NewTimeMin;
If I do a Serial.print(NowTime); You would think the answer is 1342
But no I get 172. I don't know why it's adding only the first digit of the second variable to my first var. e.g. 13 + 4 = 17 How do I get the two int as one number without adding them together?