在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1.Math.Round:四舍六入五取偶 引用内容
Math.Round(0.0) //0
Math.Round(0.1) //0 Math.Round(0.2) //0 Math.Round(0.3) //0 Math.Round(0.4) //0 Math.Round(0.5) //0 Math.Round(0.6) //1 Math.Round(0.7) //1 Math.Round(0.8) //1 Math.Round(0.9) //1
引用内容
Math.Ceiling(0.0) //0
Math.Ceiling(0.1) //1 Math.Ceiling(0.2) //1 Math.Ceiling(0.3) //1 Math.Ceiling(0.4) //1 Math.Ceiling(0.5) //1 Math.Ceiling(0.6) //1 Math.Ceiling(0.7) //1 Math.Ceiling(0.8) //1 Math.Ceiling(0.9) //1
引用内容
Math.Floor(0.0) //0
Math.Floor(0.1) //0 Math.Floor(0.2) //0 Math.Floor(0.3) //0 Math.Floor(0.4) //0 Math.Floor(0.5) //0 Math.Floor(0.6) //0 Math.Floor(0.7) //0 Math.Floor(0.8) //0 Math.Floor(0.9) //0 |
请发表评论