def write_numeric(fmt, value, buff, byteorder='<STR_LIT>'):
try:<EOL><INDENT>buff.write(fmt[byteorder].pack(value))<EOL><DEDENT>except KeyError as exc:<EOL><INDENT>raise ValueError('<STR_LIT>') from exc<EOL><DEDENT>
Write a numeric value to a file-like object.