Round double value - CSharp System

CSharp examples for System:Double

Description

Round double value

Demo Code


using System.IO;// ww w . j av  a  2  s .  co  m
using System.Text;
using System.Collections.Generic;
using System;

public class Main{

        public static double ROUND(double dbA)
        {
            return (double)((int)(dbA + 0.5));
        }
}

Related Tutorials