Thanks for the feedback Pete -- actually it turned out to be a line in the DAO object that was doing the rounding. I figured when I couldn't find anything on the web that it must be my typical dumb error and not something common.
However the part I mention in my first response is still valid, where "Number(textInput.text)" is different from "txtInput.text as Number". The "as Number" cast does round off the value to the nearest integer. --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote: > > Sorry I missed this post originally, is there any chance that you could > email me a small test case directly... [EMAIL PROTECTED] > > Thanks, > > Pete > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of alteraa > Sent: Friday, May 11, 2007 1:46 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Number data type rounding/flooring with FDS and > Java > > > > Hi, simple problem. I have a strongly-typed VO with a property > "value" as a Number on the Flex side, and a Double on the Java side. > In the database the value is, let's say 5.20, but when I view the data > in a DataGrid it "floors" the value to 5. > > I'm using a dataService to fill the ArrayCollection that holds the VOs > and the VO class in ActionScript does have the [Managed] > [RemoteClass(alias=""] syntax. This works fine for all the data types > I've used so far until I got to Number. > > I figure it's something simple I'm doing wrong, like maybe not > specifying the number of decimal points that should be displayed? > > Also, in a related question, what's the best way to have the user > input a Number value into a text input field, since TextInput.text is > String data? > > Thanks! >