No floats should be used to store prices in the database, but what with floats and land area?
I have for example:
$area1 = 101.12;
$area2 = 92.19;
$area3 = 104.02;
$area4 = 89.10;
$area5 = 95.58;
Can I use float in DB for these values? Then I would like to look after these values in the database, sometimes merge two values ($area1 + $area2) or calculate the average also.
What type in the database should I use?
If I use other than float then how can I type it in PHP?
function merge(float $area1, float $area2) : float
Then can I use float type?