• 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: Cocoa:Re: number formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa:Re: number formatting


  • Subject: Re: Cocoa:Re: number formatting
  • From: Timothy Larkin <email@hidden>
  • Date: Mon, 04 Mar 2002 09:00:17 -0500

On 2002.02.23 16:45, "Lance Bland" <email@hidden> wrote:

> Also, I'm not arguing, complaining, or anything like that. I'm asking
> for suggestions, features, ideas, trying to understand other people's
> points of view, trying to learn, thinking outside the NSFormatter box if
> you may, etc.

Suggestion: "How To Print Floating Point Numbers Accurately", Guy Steele and
Jon White, Proceedings of the ACM SIGPLAN'90 Conference on Programming
Language Design and Implementation, White Plains, NY, June 20-22, 1990.

This is available on-line at
http://www.acm.org/pubs/citations/proceedings/pldi/93542/p92-clinger/.

The first sentence of the introduction presents the problem, "Isn't it a
pain when you ask a computer to divide 1.0 by 10.0 and it prints 0.0999999?"

The article presents a number of algorithms for this problem. I have some
C++ code that implements the simplest of the schemes presented.

--
Timothy Larkin
Abstract Tools
Caroline, NY
_______________________________________________
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: Cocoa:Re: number formatting
      • From: Lance Bland <email@hidden>
  • Prev by Date: Re: number formatting
  • Next by Date: Re: Cocoa:Re: number formatting
  • Previous by thread: Re: window focus trouble
  • Next by thread: Re: Cocoa:Re: number formatting
  • Index(es):
    • Date
    • Thread