Hi, this is my issue:
I made a query to SQL server to get some data via a Stored Procedure, the returned value was this:
10219150
Then, on an assembly (I don't have the source code of that assembly, I reflected the file to view the code) someone made this:
Ammount = Convert.ToSingle(10219150); //the value from the stored procedure
So, when I invoke that method which makes some stuff and does the final conversion, it returns this value:
1.021315E+7
How is that possible?? why does the Convert.ToSingle add extra decimal positions?? I don't understand.
How could I fix it, is there a way that i can reverse that conversion on my code when I invoke that method of the assembly? (cause I can't rewrite that assembly file, it's too big and as i mentioned earlier, i don't have the source code to fix the conversion); so can can get
From this: 1.021315E+7 To this: 10219150 again (restore the correct value without that conversion)
Hope I made myself clear.
Thanks in advance.