Click here to Skip to main content
15,918,041 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have done mini app in c# and with database access 2007
and i have debug it in xp with platform x86
work perfect all good but i have problem when i run it on win7 and i put number with decimal for exp 2.2 on database that will be saved as 22
some can some one help me why he save it 22 and not 2.2
sorry for my bed english
Posted
Comments
fjdiewornncalwe 2-Apr-12 15:29pm    
You will need to show us the critical code snippets. Without them we have no idea of what you are doing and the last time I checked, no one here was psychic. :) Please use the Improve question widget and add those to your question so that we can be of help to you. Cheers.

The first thing to check is the culture setting: if his is not the same as yours, then depending on how you do things, you may get different results. If for example his culture is set to use comma as a decimal separator, then it could be assuming the dot is a misplaced thousands separator and ignore it.

Other than that, we need to see the code you use to load the text box, read the textbox, convert it to a number, and save it into the DB.
 
Share this answer
 
OriginalGriff
thnx alot i will try it :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900