changing a decimal in c based on user input

Try Math.Round

var input = 3;
var value = 1.2345;

var result = Math.Round(value, input, MidpointRounding.AwayFromZero);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top