let fail_nan s = try raw s with _ -> nan