Whole, half or floating point ratings control written in Swift