round a float to closest 1/4 / find closest number

Hello, I’ve run into a problem, I’ve been messing around with Mathf.Round, But i cant make it to round to the closest 1/4 instead of the closest full number.
example

2.10f will become 2.00f

2.17f will become 2.25f

2.47f will become 2.50f

so forth,
is there any way to do this?
any help would be greatly appreciated, thanks!

Multiply by four, round to an int, and then divide by four again:

x = Mathf.Round (x * 4) / 4;