title: Validate decimal number with Play object
body: <p>I am trying to create an object on Play 2.1 with decimal number variables.
  I want to set a validation using annotation, currently what I did is: </p>
  
  <pre><code>import play.data.validation.Constraints.Max;
  import play.data.validation.Constraints.Min;
  @Max(10)
  @Min(0.1)
  public Float someNumber; 
  </code></pre>
  
  <p>but it said cannot convert double to long.
  How could I do this kind of validation?</p>
  
  <p>Thank you</p>