float values
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.