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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert string to long

Status
Not open for further replies.

bobntn2014

Programmer
May 5, 2014
2
US
I have a string field that contains a price example: 1.22
When i save it to a long field it is only 1.00
Any help would be appreciated
 
LONG declares a integer, you have to use DECIMAL (for example DECIMAL(15,2)).

cagiv
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top