# Precision

The Rating allows you to control the precision with which an item is selected.

To configure the [`Precision`](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui.fluent/ratingbuilder#precisionsystemstring) property, use either of the available properties:

* `item`—Selects the whole item.
* `half`—Selects half of the item.

## Item Precision

The item mode is the default precision mode of the Rating. If not configured, the widget will automatically set the [`Precision`](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui.fluent/ratingbuilder#precisionsystemstring) property to `"item"` which enables only whole stars to be selected by click or keyboard interaction.

```Razor HtmlHelper
    @(Html.Kendo().Rating()
        .Name("rating")
        .Precision("item")
    )
```

```Razor TagHelper
    <kendo-rating name="rating" precision="item"></kendo-rating>
```

## Half Precision

To configure he half precision mode of the Rating, set the [`Precision`](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui.fluent/ratingbuilder#precisionsystemstring) option to `"half"` which allows you to set decimal values. The passed value is rounded during the rendering phase to display a full or half item based on the following value specifics:

* A value which is less than or equal to `.5` displays half an item.
* A value which is greater than `.5` displays a full item.

```Razor HtmlHelper
    @(Html.Kendo().Rating()
        .Name("rating1")
        .Min(1)
        .Max(6)
        .Value(3.2)
        .Precision("half")
    )
    <br>
    @(Html.Kendo().Rating()
        .Name("rating2")
        .Min(1)
        .Max(6)
        .Value(3.5)
        .Precision("half")
    )
    <br>
    @(Html.Kendo().Rating()
        .Name("rating3")
        .Min(1)
        .Max(6)
        .Value(3.7)
        .Precision("half")
    )
```

```Razor TagHelper
    <kendo-rating name="rating"
                  min="1"
                  max="6"
                  value="3.2"
                  precision="half">
    </kendo-rating>
    <br>
    <kendo-rating name="rating2"
                  min="1"
                  max="6"
                  value="3.5"
                  precision="half">
    </kendo-rating>
    <br>
    <kendo-rating name="rating3"
                  min="1"
                  max="6"
                  value="3.7"
                  precision="half">
    </kendo-rating>
```

## See Also

* [Precision by the Rating HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/rating/precision)
* [Server-Side API](https://docs.telerik.com/aspnet-core/api/rating)
