Create a float attribute. Optionally, minimum and maximum values can be provided.