Hello
Did we have any build-in function to round decimal number?
ex:
origin number: 7.12345678
then i setup it to have 6 digit in the decimal part
then i recieve: 7.123456
but i want to have a value like this: 7.123457
can you help me
thanks you very much!
Hi,
Rounding can be done as follows:
decimal X = 2.123456m; Console.WriteLine(Math.Round(X, 5));
this will print the value 2.12346
However these are not questions related to Infragistics products, but is basic programming so you can refer to https://msdn.microsoft.com/en-us/library/zy06z30k(v=vs.110).aspx for any further similar issues.