INF: Buffer Size for fcvt() and ecvt() Is 349 Bytes

ID Number: Q59070

5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.1, 6.0, 6.0a, 6.0ax, and C/C++ version 7.0,

the ecvt() and fcvt() routines use a single, statically allocated buffer

while converting floating point numbers to character strings. The buffer

is currently defined as 349 bytes. However, the largest double-precision

variable that can be used is 309 bytes, with 40 bytes for padding. It

is set up to be large enough to accommodate the largest double

precision number plus 40 decimal places (even though you only have 16

digits of accuracy in a double precision IEEE number).

Additional reference words: 5.10 6.00 6.00a 6.00ax 7.00