# 64 bit integer types and printing

**URL:** <https://community.particle.io/t/64-bit-integer-types-and-printing/39126>\
**Category:** Firmware\
**Created:** [January 31, 2018, 8:40pm UTC](https://community.particle.io/t/64-bit-integer-types-and-printing/39126 "2018-01-31T20:40:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 1, 2018, 3:30pm UTC](https://community.particle.io/t/64-bit-integer-types-and-printing/39126/4 "2018-02-01T15:30:50Z")

</div>

There was a discussion about `long long` a long time ago and I guess things haven't changed since

> [@Problems when using long long](https://community.particle.io/t/problems-when-using-long-long/19302/16):
>
> My guess is that the sprintf is not handling the 64-bt datatype. %ld means long not long long. To print, I see you have 2 options: write your own routine to print the long long value convert to double and print using sprintf print out in hex, first the upper 32-bits, then the lower 32. I hope that helps.

---

_[View the full topic](https://community.particle.io/t/64-bit-integer-types-and-printing/39126)._
