# Math.Ceiling Tips

<>This question already has an answer here:

- C# decimal take ceiling 2 4 answers

## Answers

How about using Math.Round(double, int) overload with 1 digit?

Math.Round(3.79, 1) // 3.8

Are you looking for

double number = Math.Ceiling(3.79 * 10.0) / 10.0;

if you want to Round (not find the Ceiling)

double number = Math.Round(3.79, 1);

Please, note the difference:

Ceiling(32.1) == 33 Round(32.1) == 32