Object relational mapping - Columns - Data types - Float.php 459 Bytes
Newer Older
hansbrix's avatar
hansbrix committed
1
The float data type may store floating point decimal numbers. This data type is suitable for representing numbers within a large scale range that do not require high accuracy. The scale and the precision limits of the values that may be stored in a database depends on the DBMS that it is used. 
2

hansbrix's avatar
hansbrix committed
3 4 5 6 7 8 9
<code type="php">
class Test extends Doctrine_Record {
    public function setTableDefinition() {
        $this->hasColumn('floattest', 'float');
    }
}
</code>