src/CryptoQuantity.php
public function getFloatValue()
    {
        list($quotient, $remainder) = $this->big_integer->divide(self::precisionUnitsAsBigInt(1, $this->precision));
        return floatval($quotient->toString()) + floatval($remainder->toString() / pow(10, $this->precision));
    }
public function getFloatValue()
    {
        list($quotient, $remainder) = $this->big_integer->divide(self::precisionUnitsAsBigInt(1, $this->precision));
        return floatval($quotient->toString()) + floatval($remainder->toString() / pow(10, $this->precision));
    }
public function getFloatValue ( ) { list ( $ quotient , $ remainder ) = $ this -> big_integer -> divide ( self :: precisionUnitsAsBigInt ( 1 , $ this -> precision ) ) ; return floatval ( $ quotient -> toString ( ) ) + floatval ( $ remainder -> toString ( ) / pow ( 10 , $ this -> precision ) ) ; }
Gets the amount as a float
@return float A float representation of the value
Gets the amount as a float