def __from_format(jd: float, fmt: str) -> (int, float):
if fmt.lower() == '<STR_LIT>':<EOL><INDENT>return math.floor(jd + <NUM_LIT:0.5>), jd + <NUM_LIT:0.5> - math.floor(jd + <NUM_LIT:0.5>)<EOL><DEDENT>elif fmt.lower() == '<STR_LIT>':<EOL><INDENT>return __from_format(jd + <NUM_LIT>, '<STR_LIT>')<EOL><DEDENT>elif fmt.lower() == '<STR_LIT>':<EOL><INDENT>return __from_format(jd + <NUM_LIT>, '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>
Converts a Julian Day format into the "standard" Julian
day format.
Parameters
----------
jd
fmt

Returns
-------
(jd, fractional): (int, float)
     A tuple representing a Julian day.  The first number is the
     Julian Day Number, and the second is the fractional component of the
     day.  A fractional component of 0.5 represents noon.  Therefore
     the standard julian day would be (jd + fractional + 0.5)