Advertisement
baldengineer

Integer vs Long

Feb 26th, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. void setup() {
  2.   // put your setup code here, to run once:
  3.   delay(1000);
  4.   Serial.begin(9600);
  5.   long asAInt = 30 * 10000;
  6.   long asALong = 30 * 10000UL;
  7.   Serial.print("Integer Math: ");
  8.   Serial.println(asAInt);
  9.   Serial.print("Long Math: ");
  10.   Serial.println(asALong);
  11. }
  12.  
  13. void loop() {
  14.   // put your main code here, to run repeatedly:
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement