• 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
NSPredicateEditor and decimal numbers with fractions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPredicateEditor and decimal numbers with fractions


  • Subject: NSPredicateEditor and decimal numbers with fractions
  • From: Ruotger Skupin <email@hidden>
  • Date: Wed, 18 Jun 2008 23:06:45 +0200

Hi,

I've set up an NSPredicateEditor with a template that forms a predicate like: [Gross Value] [is] [32.99]

the format of the text field is set as Number in Interface Builder. If I input 32.99 into the field I get a predicate like this:

grossAmount.amount == 32

Obviously the number is rounded off at the decimal point. Since this is a currency amount, I need the decimal fraction ("the cents").

Any Advice?

Ruotger

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Converting HID keyboards usages to characters ?
  • Next by Date: Re: Binding the enabled property of a NSMatrix instance to wether or not a multiple selection on a array controller is made.
  • Previous by thread: NSPredicateEditor and decimal numbers with fractions
  • Next by thread: Converting HID keyboards usages to characters ?
  • Index(es):
    • Date
    • Thread