[swift-users] Printing large hexadecimal values

Jens Alfke jens at mooseyard.com
Wed May 25 12:54:13 CDT 2016


> On May 25, 2016, at 10:16 AM, Ken Burgett via swift-users <swift-users at swift.org> wrote:
> 
> I wish to print a 64-bit unsigned integer as 8 hexadecimal digits, and I can't find any documentation on this.  Please advise.

print(String(format: “%llx”, n))		// typed from memory

—Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160525/c836f4a9/attachment.html>


More information about the swift-users mailing list