XF 2.3 float length?

Robert9

Well-known member
$table->addColumn('newColumn', 'float', '')->setDefault(0);

I need 0.00 to 5.00; then length is '3,2'?
There is a float in the RM, but no length.
 
Are you sure it’s a float in the RM ?
If it’s the price I believe it’s a decimal type to master the decimals length.

DECIMAL(10,2) if I am not mistaking.
 
See Setup.php, search "float", there is no length.
Can i do 3,2 for 1.00 to 5.00?

For Integers I have unsigned.
What i do for floats?
I need -5.00 to +5.00
 
Na sorry I Said wrong the first is the total number of digits.

So what you want is 3,2.

However you will only be able to limit as you want through programmation on php side.
 
Back
Top Bottom