function [ y, m, d, f ] = frac_carry_julian ( y, m, d, f )

%*****************************************************************************80
%
%% frac_carry_julian() carries fractions from days in a Julian YMDF date.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 June 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, M, D, real F, the YMDF date.
%
%  Output:
%
%    integer Y, M, D, real F, the YMDF date after carrying.
%
  if ( f < 1.0 )
    return
  end

  days = floor ( f );

  f = f - days;
  d = d + days;

  [ y, m, d ] = day_carry_julian ( y, m, d );

  return
end
