From 4f2f813dee5056beb7b803be4a20f442296e97ef Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Tue, 19 Jan 2021 10:46:02 +0100 Subject: [PATCH] Adjust some comments about precision --- parse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/parse.c b/parse.c index 72a9c30..3d97f61 100644 --- a/parse.c +++ b/parse.c @@ -1,5 +1,3 @@ -#define PARSE__C - #include #include #include @@ -374,7 +372,7 @@ printflt(unsigned *flt, int size) /* Note: there are probably degenerate cases that store incorrect results. For example, I think rounding up a FLT2 might cause exponent overflow. Sorry. */ -/* Note also that the full 49 bits of precision probably aren't +/* Note also that the full 56 bits of precision probably aren't always available on the source platform, given the widespread application of IEEE floating point formats, so expect some differences. Sorry again. */ @@ -387,7 +385,7 @@ int parse_float( { DOUBLE d; /* value */ DOUBLE frac; /* fractional value */ - uint64_t ufrac; /* fraction converted to 49 bit + uint64_t ufrac; /* fraction converted to 56 bit unsigned integer */ int i; /* Number of fields converted by sscanf */ int n; /* Number of characters converted by sscanf */