def __to_format(jd: float, fmt: str) -> float:
if fmt.lower() == '<STR_LIT>':<EOL><INDENT>return jd<EOL><DEDENT>elif fmt.lower() == '<STR_LIT>':<EOL><INDENT>return jd - <NUM_LIT><EOL><DEDENT>elif fmt.lower() == '<STR_LIT>':<EOL><INDENT>return jd - <NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>
Converts a Julian Day object into a specific format.  For
example, Modified Julian Day.
Parameters
----------
jd: float
fmt: str

Returns
-------
jd: float