Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store numbers 1

Status
Not open for further replies.

Kai77

Programmer
Jun 7, 2004
77
NL
I would like to store something like 100,5 or 100.5 (100 and a half) in a field. So I chose a decimal as datatype for the field. But it removes the , or . and stores it as 1005. I am probably using the wrong datatype, which is the correct one?
 
Decimal is OK, with enough precision and scale - in this case at least (4, 1).

------
heisenbug: A bug that disappears or alters its behavior when one attempts to probe or isolate it
schroedinbug: A bug that doesn't appear until someone reads source code and realizes it never should have worked, at which point the program promptly stops working for everybody until fixed.

[ba
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top