C#科学计数字符串,如“7.1e-003”转换为decimal类型数据

2025-04-04 10:48:15
推荐回答(2个)
回答1:

decimal d = decimal.Parse(double.Parse("7.1e-003").ToString());
Console.WriteLine(d.ToString());

回答2:

没有,你的7.1e-003好像是excel中的数据