def altimeter(alt: Number, unit: str = '<STR_LIT>') -> str:
ret = '<STR_LIT>'<EOL>if not alt:<EOL><INDENT>ret += '<STR_LIT>'<EOL><DEDENT>elif unit == '<STR_LIT>':<EOL><INDENT>ret += core.spoken_number(alt.repr[:<NUM_LIT:2>]) + '<STR_LIT>' + core.spoken_number(alt.repr[<NUM_LIT:2>:])<EOL><DEDENT>elif unit == '<STR_LIT>':<EOL><INDENT>ret += core.spoken_number(alt.repr)<EOL><DEDENT>return ret<EOL>
Format altimeter details into a spoken word string