That should work

Is your rating field of type number?