From 56153ba9d876c19e9106836d33585384857ad5e2 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 26 Aug 2024 10:15:53 -0400 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9e1d61..8740a62 100644 --- a/README.md +++ b/README.md @@ -147,8 +147,11 @@ print the number 22250738585072012 three times: ## Behavior of result_out_of_range When parsing floating-point values, the numbers can sometimes be too small (e.g., `1e-1000`) or -too large (e.g., `1e1000`). In such cases, it is customary to parse small values to zero and large -values to infinity. That is the behaviour followed by the fast_float library. +too large (e.g., `1e1000`). The C language established the precedent that these small values are out of range. +In such cases, it is customary to parse small values to zero and large +values to infinity. That is the behaviour of the C language (e.g., `stdtod`). That is the behaviour followed by the fast_float library. + + Specifically, we follow Jonathan Wakely's interpretation of the standard: