i have dt with column value and want to convert the datatype to double for calculation.
So i have used for each row
and use Assign doublevariable = Convert.ToDouble(row(“Value”).ToString)
to convert the column but have received input string was not in a correct format.
Had this issue the other day. My input was 1.99 for example so had to use decimal for calculations instead of double. Would be more helpful if you could share values in the dt you are trying to convert though.