float values

Ricardo Strausz <[email protected]>
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.