AttributeType::Number giving validation error "Must be an integer" So I have a model attribute attributeName with an AttributeType::Number

I haven't implemented any personal validation rules yet, however when I run:
model-&gt;validate(), 
its giving me a "attributeName must be an integer" error. 

Is this just the default validation rule of the AttributeType::Number?  and if so, is there anything I can do to make it accept floats?

I am trying to use this attribute for a price, I should note.

CNumberValidator has an integerOnly attribute, so I tried setting 'integerOnly'=&gt;false in the attribute declaration, to no avail. Not sure if its relevant, I think I might be grasping at straws. Any help would be greatly appreciated!
Not really documented anywhere, but AttributeType::Number can accept an array of options, including min, max and decimal.  You're looking for the last one.

AttributeType::Number =&gt; array('min' =&gt; 0, 'max' =&gt; 10, 'decimals' =&gt; 2);