I want to set the precision or make sure i am getting the precision by 2 decimal points, at the moment once I read in the value, its rounded off to the nearest dollar if you know
what i mean.
Can some assist me. I want to set the precision by two decimal places.
if (reader["PRICE"] != DBNull.Value)
{
Row.PRICE= Convert.ToDecimal(reader["PRICE"]);
}
Loading
David SmithPosted Nov 7, 2011, 4:40 PM
decimal (18,2)
Suthish NairPosted Nov 7, 2011, 3:12 PM
David SmithPosted Nov 7, 2011, 1:09 PM
my types were decimal (18,0) instead of decimal (18,2). I suck. I am so mad. I have beed tracing this for the last two days. Im glad i save this to the end. This would have killed me. lolololol
VulpesPosted Nov 7, 2011, 11:17 AM
David SmithPosted Nov 7, 2011, 11:08 AM
VulpesPosted Nov 7, 2011, 4:44 AM
Suthish NairPosted Nov 7, 2011, 2:49 AM
David SmithPosted Nov 7, 2011, 1:03 AM
VulpesPosted Nov 6, 2011, 10:06 AM
Suthish NairPosted Nov 6, 2011, 9:52 AM
David SmithPosted Nov 4, 2011, 3:24 AM