# probe: the other texts atof reads or refuses: spaces around a number, underscores, a lone exponent, words, an empty text, inf and nan def show(t: String): try: print(t, "->", atof(t)) except e: print(t, "-> raised:", e) def main(): show(" 2.5") show("2.5 ") show("1_000") show("1e") show("abc") show("") show("-") show("inf") show("nan")