Update min value in formatstr.write if curr_n is small