R Robert9 Well-known member Jul 19, 2024 #1 $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.
$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.
XFA Well-known member Jul 23, 2024 #2 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.
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.
R Robert9 Well-known member Jul 23, 2024 #3 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
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
XFA Well-known member Jul 23, 2024 #4 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.
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.