public function asFloat(Money $money)
    {
        $amount = $money->getAmount();
        $amount = (float) $amount;
        $amount = $amount / pow(10, $this->decimals);

        return $amount;
    }
public function asFloat(Money $money)
    {
        $amount = $money->getAmount();
        $amount = (float) $amount;
        $amount = $amount / pow(10, $this->decimals);

        return $amount;
    }
public function asFloat ( Money $ money ) { $ amount = $ money -> getAmount ( ) ; $ amount = ( float ) $ amount ; $ amount = $ amount / pow ( 10 , $ this -> decimals ) ; return $ amount ; }
Returns the amount for the given Money object as simple float

@param Money $money
@return float
Returns the amount for the given Money object as simple float