Is there a way to programmatically retrieve the maximum float value for php. Akin to FLT_MAX
or std::numeric_limits< float >::max()
in C / C++?
I am using something like the following:
$minimumCost = MAXIMUM_FLOAT_VALUE??;
foreach ( $objects as $object )
{
$cost = $object->CalculateCost();
if ( $cost < $minimumCost )
{
$minimumCost = $cost;
}
}
(using php 5.2)