How to print long number to console?


when I try to send the result of this:

long l = 8192 * 90 ;
Serial.println(l, DEC);

to the console, the console shows only the value of 16384.

Its neighter working with the String Wrapper

Does somebody know a solution?

aqian: Does somebody know a solution?

long l = 8192L * 90L ;

the numbers on the right are by default ints which are 16bit on Arduino

Perfekt! Thank you very much.

BTW the "DEC" is redundant - decimal is the default.