Skip to content

Code to print int64_t and uint64_t for UNO (and maybe DUE) #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RobTillaart opened this issue Jan 19, 2013 · 7 comments
Closed

Code to print int64_t and uint64_t for UNO (and maybe DUE) #194

RobTillaart opened this issue Jan 19, 2013 · 7 comments
Assignees

Comments

@RobTillaart
Copy link

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

@diegozaks
Copy link

What's the status on this? Any updates?

@Chris--A
Copy link

Chris--A commented 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
Copy link
Author

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.

fpistm referenced this issue in stm32duino/Arduino_Core_STM32 May 22, 2017
@JensGrabner
Copy link

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
Copy link

sadr0b0t commented Aug 8, 2017

Any chance to see this patch in upstream?

@RobTillaart
Copy link
Author

Created pull request - arduino/Arduino#6608

@sandeepmistry sandeepmistry transferred this issue from arduino/Arduino Sep 16, 2019
@RobTillaart
Copy link
Author

Created my own lib to solve this - https://github.com/RobTillaart/printHelpers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants