Create a ratio from a given numeric value.