Hi, I have a question, about using 64-bit lenght data types. I'm using Arduino IDE (1.8.19), and if I put a declaration like this:
uint64 bigNumber=0;
it is compiling, but if I have:
unsigned int number1=0;
uint64 bigNumber=0;
uint64_t number2=0;
void setup() {
Serial.begin(9600);
}
void loop() {
bigNumber=micros()*100;
number1=micros()*100;
number2=bigNumber/number1;
Serial.print(bigNumber);
Serial.print(" ");
Serial.print(number1);
Serial.print(" ");
Serial.println(number2);
delay(100);
}
Printed numbers goes to 4.2B and goes back to 0. I found that Serial print could only print 32bit, so that's why I add number2, and it shows always 0 or 1. I suppose, if it is compiling, uint64 data type exists, but how can I find out about this?
I don't really need it, but I would like to know, how it is?
STM32duino supported data types
Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Jump to
- Announcements
- New users start here
- ↳ Forum rules, FAQs and HowTo's
- ↳ Let us know a bit about you and your projects
- Arduino for STM32
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Cores
- ↳ STM32 Core
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ Ideas & suggestions
- ↳ General discussion
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ LibMaple
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ Steve's LibMaple core
- ↳ General discussion
- ↳ PR's bugs and enhancements
- ↳ Projects
- ↳ IDE's
- ↳ Off topic
- Arduino for STM8
- ↳ General discussion
- ↳ Cores
- ↳ STM8 Core
- ↳ Other
- Boards
- ↳ Custom design boards
- ↳ Maple & Maple mini etc
- ↳ STM boards (Discovery, Eval, Nucleo, ...)
- ↳ All other boards
- ↳ STM32F0 based boards
- ↳ STM32F1 based boards
- ↳ STM32F2 based boards
- ↳ STM32F3 based boards
- ↳ STM32F4 based boards
- ↳ STM32F7 based boards
- ↳ STM32G0 based boards
- ↳ STM32G4 based boards
- ↳ STM32H7 based boards
- ↳ STM32L0 based boards
- ↳ STM32L1 based boards
- ↳ STM32L4 based boards
- ↳ STM32L5 based boards
- ↳ STM32MP1 based boards
- ↳ STM32WB based boards
- Bootloaders
- ↳ STM32 HID bootloader
- ↳ USB bootloader
- ↳ STM32 SD-Bootloader
- ↳ STM32 USB CDC bootloader
- Uploaders and debuggers
- ↳ STLink
- ↳ USB to Serial adaptors
- ↳ Black Magic Probe & other
- Dead Thread Graveyard
- ↳ Dead Thread Graveyard