首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2013-01-26 
C#系列教程——decimal类型格式化十进制输出代码如下:using Systempublic class Decimal_Test{static void

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

代码如下:

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


 

热点排行