• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unsigned 16 digit integer data type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unsigned 16 digit integer data type?


  • Subject: Re: unsigned 16 digit integer data type?
  • From: Henry McGilton <email@hidden>
  • Date: Tue, 4 Nov 2003 15:49:11 -0800

On Tuesday, November 4, 2003, at 02:27 PM, Clark Cox wrote:

On Nov 04, 2003, at 16:21, Matt Gillette wrote:

how can you print a long long out?

To print out unsigned long long, use %q (quad - I think)

what's the maximum value of a unsigned long long?

Not sure, but wouldn't it be 2^64 - 1?

Yes, but remember that that is the maximum guaranteed value (a
compiler/platform is free to support larger sizes)


Also think about using the uint64_t typedef rather than
explicitly spelling out unsigned long long.

The maximum value of a 64-bit unsigned would be 2 ^ 32 * 2 ^ 32 - 1,
or 18,446,744,073,709,551,615 --- that is more than eighteen
million trillion. Certainly big enough for sixteen decimal
digits.

Best Wishes,
........ Henry


===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: unsigned 16 digit integer data type?
      • From: Ben Dougall <email@hidden>
References: 
 >Re: unsigned 16 digit integer data type? (From: Clark Cox <email@hidden>)

  • Prev by Date: A Drawer with a Modal Dialog: is this too stupid?
  • Next by Date: Re: Freelance programming
  • Previous by thread: Re: unsigned 16 digit integer data type?
  • Next by thread: Re: unsigned 16 digit integer data type?
  • Index(es):
    • Date
    • Thread