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

float values


  • Subject: float values
  • From: Ricardo Strausz <email@hidden>
  • Date: Wed, 22 Jan 2003 12:07:59 -0600

Hi all,
I am facing a (may be simple) problem. In a d2w (and d2j) apps, i have a couple of fields which most be floats (cuantities which cannot be mesured by integers). The problem is that, eventhough I was able (via the assistent) to aloud the interface to accept decimal/float values, when commiting (say when saveing) the transaction, it is rounded to an integer and saved as that. e.g., 0.678 is saved as 1, 0.456 as 0 and so on.
Since this cuantities are the balance of a stock, this behave is unacceptable.


I know that:
it is not the database (in the squema the values are defined as floats)
it is not the model (I hope; the "internal" type is NSNumber and the external one is "double precision")
it is not the textfield (it has a formatter of the form: 0.000)


What else can it be???



Dino
http://homepage.mac.com/strausz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: float values
      • From: Jonathan Rochkind <email@hidden>
  • Prev by Date: Getting a DirectAction URL to a method or Variable
  • Next by Date: Re: Webobjects newsgroup? GMANE!
  • Previous by thread: Re: Getting a DirectAction URL to a method or Variable
  • Next by thread: Re: float values
  • Index(es):
    • Date
    • Thread