-
☆ A M B ☆
- 24,524 Posts
How to specify the digits of a float in an xpdo schema? I want 5 digits, three to the left and two to the right of the decimal point.
<field key="value" dbtype="float" phptype="float" null="false" default="0"/>
In a regular PHP table I'd use "float(5,2)"
I think this is it:
dbtype="decimal" precision="4,2" phptype="float"