• 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
Limiting a float
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Limiting a float


  • Subject: Limiting a float
  • From: Emig 647 <email@hidden>
  • Date: Wed, 27 Aug 2003 16:05:58 -0700

I am beginning cocoa ... Again.

For my first app I made a conversion between Kelvin, Celsius, Fahrenheit.

I send the result to an NSTextField as a float...

The problem is the float is sent as 17.340209972309 and I want to limit it
to 2 places to the right of the decimal...

Any ideas?

- Cody
_______________________________________________
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: Limiting a float
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Limiting a float
      • From: publiclook <email@hidden>
    • Re: Limiting a float
      • From: Justin Anderson <email@hidden>
  • Prev by Date: Re: How to load a sheet in a separate Nib file
  • Next by Date: Re: How to load a sheet in a separate Nib file
  • Previous by thread: NSTextView inside custom control
  • Next by thread: Re: Limiting a float
  • Index(es):
    • Date
    • Thread