db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon August <...@internection.com>
Subject BigDecimal and MySQL decimal
Date Wed, 13 Dec 2006 22:38:07 GMT
Hey,

I'm using decimal (in the schema) to store a dollar amount in my  
MySQL database.  I get the value from a web page and convert it to a  
BigDecimal before storing it.  For some reason, the decimal portion  
gets truncated and $10.32 gets stored as 10.  Should I be using  
something other than BigDecimal or is there something else wrong?

Sorry if this is not a torque question.

-Jon

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message