Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, I have property Latitude with type decimal in my database. When i select from database it comes with comma not with dot.
For example it is 44,795032 now, it should be 44.795032 because i need this variable in google maps, javascript asks variable to be number.
InvalidValueError: property lat: not a number
I tried changing comma with dot in C#, here is code below, but it doesn't works. Any suggestions ?
decimal parsedValue = Decimal.Parse(aTMsAndBranchesLatitude, NumberStyles.Any, CultureInfo.InvariantCulture);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Culture for decimal type variables
Hi, I have property Latitude with type decimal in my database. When i select from database it comes with comma not with dot.
For example it is 44,795032 now, it should be 44.795032 because i need this variable in google maps, javascript asks variable to be number.
I tried changing comma with dot in C#, here is code below, but it doesn't works. Any suggestions ?
is working on a reply...