Vendor/phpspreadsheet/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial.php
public static function DOLLARFR($decimal_dollar = null, $fraction = 0)
    {
        $decimal_dollar = Functions::flattenSingleValue($decimal_dollar);
        $fraction = (int) Functions::flattenSingleValue($fraction);

        // Validate parameters
        if ($decimal_dollar === null || $fraction < 0) {
            return Functions::NAN();
        }
        if ($fraction == 0) {
            return Functions::DIV0();
        }

        $dollars = floor($decimal_dollar);
        $cents = fmod($decimal_dollar, 1);
        $cents *= $fraction;
        $cents *= pow(10, -ceil(log10($fraction)));

        return $dollars + $cents;
    }
public static function DOLLARFR($decimal_dollar = null, $fraction = 0)
    {
        $decimal_dollar = Functions::flattenSingleValue($decimal_dollar);
        $fraction = (int) Functions::flattenSingleValue($fraction);

        // Validate parameters
        if ($decimal_dollar === null || $fraction < 0) {
            return Functions::NAN();
        }
        if ($fraction == 0) {
            return Functions::DIV0();
        }

        $dollars = floor($decimal_dollar);
        $cents = fmod($decimal_dollar, 1);
        $cents *= $fraction;
        $cents *= pow(10, -ceil(log10($fraction)));

        return $dollars + $cents;
    }
public static function DOLLARFR ( $ decimal_dollar = null , $ fraction = 0 ) { $ decimal_dollar = Functions :: flattenSingleValue ( $ decimal_dollar ) ; $ fraction = ( int ) Functions :: flattenSingleValue ( $ fraction ) ; // Validate parameters if ( $ decimal_dollar === null || $ fraction < 0 ) { return Functions :: NAN ( ) ; } if ( $ fraction == 0 ) { return Functions :: DIV0 ( ) ; } $ dollars = floor ( $ decimal_dollar ) ; $ cents = fmod ( $ decimal_dollar , 1 ) ; $ cents *= $ fraction ; $ cents *= pow ( 10 , - ceil ( log10 ( $ fraction ) ) ) ; return $ dollars + $ cents ; }
DOLLARFR.

Converts a dollar price expressed as a decimal number into a dollar price
expressed as a fraction.
Fractional dollar numbers are sometimes used for security prices.

Excel Function:
DOLLARFR(decimal_dollar,fraction)

@category Financial Functions

@param float $decimal_dollar Decimal Dollar
@param int $fraction Fraction

@return float
DOLLARFR .