读书人

C#系列课程decimal类型格式化十进

发布时间: 2013-01-26 13:47:02 作者: rapoo

C#系列教程——decimal类型格式化十进制输出

代码如下:

using System;public class Decimal_Test{    static void Main()    {        decimal d = 5.6m;        int y = 9;        Console.WriteLine(d + y);    }}


读书人网 >C#

热点推荐