Closed
Description
In - http://arduino.cc/forum/index.php/topic,143584.0.html - I posted code to be able to print int64_t and uint64_t for the UNO.
Not tested on other platforms but the code is very straightforward,
Drawback is it adds 8KB to a sketch so placed some #ifdefs in the proposed code.
Rob
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
diegozaks commentedon May 29, 2016
What's the status on this? Any updates?
Chris--A commentedon Jun 2, 2016
@RobTillaart
If this does not end up in the core I'd be happy to add it to my PrintEx lib. Thus giving you and easy way to use it without having to add it to the core on each update.
Is the 8Kb a flat addition or only when used? If it is added without using it, I think I may be able to mitigate this in PrintEx.
RobTillaart commentedon Jun 2, 2016
That code is from long long ago ;)
As far as I recall it only adds 8K when actually used. The linker is smart enough.
I had a quick look at the code again and I (still) propose the print9() version which has imho a good balance between footprint and speed and understandability.
@Chris--A
Feel free to add the code to your printEx library so it can be used. Please add a link to the forum thread above.
JensGrabner commentedon May 30, 2017
I have make a pgm, that convert integer up to 64-bit to a String - you can used.
https://github.com/JensGrabner/snc98_Slash-Number-Calculator/tree/master/Software/Arduino/libraries/itoa_ljust
sadr0b0t commentedon Aug 8, 2017
Any chance to see this patch in upstream?
RobTillaart commentedon Aug 13, 2017
Created pull request - arduino/Arduino#6608
RobTillaart commentedon Jul 5, 2020
Created my own lib to solve this - https://github.com/RobTillaart/printHelpers