RE: 1.#R result from floating point arithmetic
- From: changliw@xxxxxxxxxxxxxxxxxxxx (Charles Wang[MSFT])
- Date: Thu, 15 Nov 2007 03:23:59 GMT
Hi,
To let us better understand your issue, could you please let us know how
you converted the double to string? Any code snippet which can help us
reproduce your issue is better.
I performed a test with _ecvt and _ect_s, they all worked fine and did not
reproduce your issue:
int decimal, sign;
char *buffer;
int precision = 10;
double source = 3.1415926535;
buffer = _ecvt( source, precision, &decimal, &sign );
printf( "source: %2.12f buffer: '%s' decimal: %d sign: %d\n",
source, buffer, decimal, sign );
Look forward to your response and have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
.
- Prev by Date: Re: Reaping a process without a parent process/service/daemon
- Next by Date: Re: which way is more efficient to check bit value
- Previous by thread: Re: Reaping a process without a parent process/service/daemon
- Next by thread: Re: 1.#R result from floating point arithmetic
- Index(es):
Relevant Pages
|