• 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: int128_t
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: int128_t


  • Subject: Re: int128_t
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 17 Oct 2008 15:55:23 +0200


Le 17 oct. 08 à 15:47, Sherm Pendley a écrit :

On Thu, Oct 16, 2008 at 8:45 AM, <email@hidden> wrote:
Maybe you were thinking of 128 bit long doubles ?

we already use the 128 long doubles, the thing is we do a lot of accounting like
calculations and 'almost accurate' is not an option :-)

Don't use floats or doubles of *any* size for financial applications. See Goldberg's classic paper on the subject:

    <http://docs.sun.com/source/806-3568/ncg_goldberg.html>
 
64 bit integers work great for that matter, but we like to step up to more bits

Don't bother. As Paul said, 64 bit is enough to represent any amount you're going to encounter in real life.

sherm--

At least until we got generic processors that natively support 128 bits integers ;-)


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: int128_t
      • From: "Sherm Pendley" <email@hidden>
References: 
 >int128_t (From: email@hidden)
 >Re: int128_t (From: Paul Russell <email@hidden>)
 >Re: int128_t (From: email@hidden)
 >Re: int128_t (From: "Sherm Pendley" <email@hidden>)

  • Prev by Date: Re: int128_t
  • Next by Date: CVS add directory
  • Previous by thread: Re: int128_t
  • Next by thread: Re: int128_t
  • Index(es):
    • Date
    • Thread