Three questions, all basically the same:
So my table has a field, and it's data type is float. There are only 64 possible values, however, ranging from 0.25 to 16.0 (increments of 0.25), and I'd like to only allow those values as an extra layer of validation.
Can I set the field to be greater than zero?
Can I set a minimum and maximum value for a float field?
Can I set the increments in some way?
Or, should I consider:
a) setting it as an integer and multiplying any input by 4 before it goes in, and setting a maximum value of 64.
b) using a really long enum?