Hi i have a variable ( generic value ) that contains a dynamic number. The number its eveyrthing from 0,00 - 100000,00 ( you get the idea) anyways. I am also performing a divider/math on that generic value to find a a number that i need to use later. This its been stored into a double. Problem is when i perform the divide it throws and error ( because it cant divide a generic value into a double ) thats fine, so i made i fix with Double.Parse(M3_PRIS.ToString, NumberStyles.Currency, cultureInfoUs) / 0.65
the problem now its that it cuts out the “comma/decimal seperator”. So example the main number its 79,10 after calculation it gives 7910. Something thats totally wrong…
How can I perform the calculation and still keep the decimal seperator
hm.What i get first its the number from a dt, thats stored into a generic variable as a string. I then want to perform a divion on that string to find a value ( my calculation its variable.tostring / 0.65) that gives me the total number of that stored variable example 100.00 i then store it into another variable thats a double. But inside this process i would need to maintain the comma 100(,)00 else it gives wrong value