none
MSDN文档出现的错误怎么反馈? RRS feed

答案

  • Hi xiaojunjor,

    感谢你在MSDN论坛发帖。

    我测试了这段代码,并没有把双精度的值转换成单精度,不知道是不是我的使用方法有问题。

      static void Main(string[] args)
            {
                double[] values = {  2.3495556, 2.355, Double.MaxValue};
                float result;
    
                foreach (double value in values)
                {
                    result = Convert.ToSingle(value);
                    Console.WriteLine("Converted the {0} value '{1}' to the {2} value {3}.",
                                      value.GetType().Name, value,
                                      result.GetType().Name, result);
                }
    
            }

    如果你想反馈这信息,你可以在抛的MSDN文档链接下面,写你的反馈,一般会有微软的人回答你。

    Best Regards,

    Hart



    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    2017年10月19日 5:51
    版主