protected function unmarshallFloat(array $unit)
    {
        $val = $unit['base']['float'];
        
        if (is_int($val) === true) {
            $val = floatval($val);    
        }
        
        return new QtiFloat($val);
    }
protected function unmarshallFloat(array $unit)
    {
        $val = $unit['base']['float'];
        
        if (is_int($val) === true) {
            $val = floatval($val);    
        }
        
        return new QtiFloat($val);
    }
protected function unmarshallFloat ( array $ unit ) { $ val = $ unit [ 'base' ] [ 'float' ] ; if ( is_int ( $ val ) === true ) { $ val = floatval ( $ val ) ; } return new QtiFloat ( $ val ) ; }
Unmarshall a float JSON PCI representation.

@param array $unit
@return \qtism\common\datatypes\Float
Unmarshall a float JSON PCI representation .