lib/BlockCypher/Converter/BtcConverter.php
public static function satoshisToBtc($satoshis)
    {
        if (!is_numeric($satoshis))
            throw new \InvalidArgumentException("$satoshis must be numeric");

        return (float)($satoshis) / (float)(self::SATOSHIS_PER_BTC);
    }
public static function satoshisToBtc($satoshis)
    {
        if (!is_numeric($satoshis))
            throw new \InvalidArgumentException("$satoshis must be numeric");

        return (float)($satoshis) / (float)(self::SATOSHIS_PER_BTC);
    }
public static function satoshisToBtc ( $ satoshis ) { if ( ! is_numeric ( $ satoshis ) ) throw new \ InvalidArgumentException ( "$satoshis must be numeric" ) ; return ( float ) ( $ satoshis ) / ( float ) ( self :: SATOSHIS_PER_BTC ) ; }
Convert satoshis to BTC

@param int|float $satoshis
@return float
Convert satoshis to BTC