Typedefs such as int64_t are declared by AVR libc and aren't specific to the Arduino platform. There's a reference page on them here.

Answer from xlem on Stack Overflow
🌐
Arduino
arduino.cc › en › Reference › long
long | Arduino Documentation
May 15, 2024 - Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647.
🌐
Reddit
reddit.com › r/arduino › unsigned long
r/arduino on Reddit: unsigned long
September 9, 2024 -

i have a code where i do : "unsigned long testDuration=180*1000;

but it puts an insanely large number in the variable. Does anyone know how to do that ? Because if i put 180000 it works.

Discussions

Arduino long long int doc - Stack Overflow
I'm a newbie to Arduino, using the UNO. I've stumbled across the "long long int" data type (int64_t). I haven't seen it mentioned in any of the instructional docs I've found. For instance, https://... More on stackoverflow.com
🌐 stackoverflow.com
programming - Difference between data type int and long on Arduino - Arduino Stack Exchange
I was learning to program for a void obstacle robot but when I looked at the code I saw two data types long and int. Int are datatypes that holds -2,147,483,648 to 2,147,483,647. Long are also More on arduino.stackexchange.com
🌐 arduino.stackexchange.com
February 14, 2016
Arduino DUE & long variables
Byte have 8 bites, int and short have 16 bits for Arduino UNO and 32 bits for Arduino DUE. Question 1: What lengh have the ”long variables” for Arduino DUE ? 32 or 64 bits? Question 2: Can I work with Arduinio UNO and 40 bits variables? Do I have any solution or I must make my own libraries ... More on forum.arduino.cc
🌐 forum.arduino.cc
4
0
March 28, 2022
How big is a long?
Confused! Simple code....receives a single number from the serial console and multiplies it by 10,000. receivedChar=Serial.read(); //The character is read. It's 0-9 Serial.println(receivedChar); // Check it's been received OK long asInteger=receivedChar -'0'; // Convert it to a number ... More on forum.arduino.cc
🌐 forum.arduino.cc
19
0
May 31, 2021
🌐
Arduino
docs.arduino.cc › language-reference › en › variables › data-types › unsignedLong
unsigned long | Arduino Documentation
Unsigned long variables are extended size variables for number storage, and store 32 bits (4 bytes). Unlike standard longs unsigned longs won’t store negative numbers, making their range from 0 to 4,294,967,295 (2^32 - 1). ... The content on docs.arduino.cc is facilitated through a public ...
🌐
Arduino Getting Started
arduinogetstarted.com › reference › arduino-unsigned-long
unsigned long | Arduino Getting Started
June 5, 2026 - unsigned long time; void setup() { Serial.begin(9600); } void loop() { Serial.print("Time: "); time = millis(); //prints time since program started Serial.println(time); // wait a second so as not to send massive amounts of data delay(1000); }
🌐
Arduino Getting Started
arduinogetstarted.com › reference › arduino-long
long | Arduino Getting Started
June 5, 2026 - How to use long with Arduino. Learn long example code, reference, definition. Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647. What is Arduino long.
Find elsewhere
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Arduino DUE & long variables - Programming - Arduino Forum
March 28, 2022 - In documentation it say that for Arithmetic Operations we can use int, float, double, byte, short and long Variables. Byte have 8 bites, int and short have 16 bits for Arduino UNO and 32 bits for Arduino DUE. Question …
🌐
Assiss
assiss.github.io › arduino-zhcn › cn › Reference › Long.html
Arduino - Long
Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647.
🌐
The Robotics Back-End
roboticsbackend.com › home › arduino variable types [complete guide]
Arduino Variable Types [Complete Guide] - The Robotics Back-End
September 28, 2021 - Again, the use you’ll make of long is pretty similar to int data type, just for larger numbers. On Arduino, when you try to get the time with millis or micros, you will get a result in unsigned long.
🌐
Arduino Forum
forum.arduino.cc › projects › general guidance
How big is a long? - General Guidance - Arduino Forum
May 31, 2021 - Confused! Simple code....receives a single number from the serial console and multiplies it by 10,000. receivedChar=Serial.read(); //The character is read. It's 0-9 Serial.println(receivedChar); // Check it's been received OK long asInteger=receivedChar -'0'; // Convert it to a number Serial.println(asInteger); //print the number out to check it's not changed long newInteger=10000*asInteger; //Multiply it by 10000 so it;s in the range 10000 to 90000 Serial.println(newIn...
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Unsigned long proper calculation method - Programming - Arduino Forum
April 18, 2024 - I am trying to put the result of a calculation that uses an int and an uint8_t and for testing purposes lets include a float aswell. Do i need to convert every parameter of the calculation to and unsigned long using the (unsigned long) datatype prefix inside the calculation to have a proper and usable as unsigned long result? for example: int a = 3054; uint8_t b = 6; float c = 1.15; unsigned long Result = (a/b)*c; I'm pretty sure this is gonna do al sorts of wacky things so my question is h...
🌐
Altervista
ipsiagpstracker.altervista.org › arduino.cc › en › Reference › Long.html
Arduino - Long - GPS Tracker
Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647.
🌐
Reddit
reddit.com › r/arduino › in this code , what is the function of the "long duration, distance; " line ?? [beginner]
r/arduino on Reddit: In this code , what is the function of the "long duration, distance; " line ?? [BEGINNER]
February 7, 2016 - Duration and distance are both variables, but until you specify what type of variable, they're meaningless to the compiler. A long variable is just a number (like an integer) that keeps extra space in the RAM to hold extra long numbers.
🌐
Arduino Forum
forum.arduino.cc › projects › programming
How do I declare a (long) variable = 1234567 - Programming - Arduino Forum
May 17, 2015 - I have an 8 digit 7 segment display. I want to display numbers greater than 16 bits but can't. :frowning: I've tried starting at.... long i = 1234567; long i = 1234567L; long i = 1234567LL; but they all seem to resu…
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Due unsigned long long int issue - Programming - Arduino Forum
August 3, 2017 - Hi all I've looked around the web and on the forum about an issue with long long ints on an Arduino Due but all the articles seem to be for the UNO. In the following code, if I look at the ASM output seems to be using 3…