RE: 1.#R result from floating point arithmetic

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.
======================================================








.



Relevant Pages

  • Re: Band-limited AY emulation
    ... a buffer containing the state of the "wave", either high or low, and another buffer containing the volume levels. ... Then output the bandlimited step response modulated ... electronics - would the filter essentially be a capacitor arrangement? ... AY module, say AYOUT. ...
    (comp.sys.sinclair)
  • Re: Band-limited AY emulation
    ... > * The AY emulator itself generates two outputs for each sound channel - ... > another buffer containing the volume levels. ... The bandlimited step response should mimic the Spectrum's ...
    (comp.sys.sinclair)
  • Re: Why Redraw of the whole page when paginating?
    ... I don't think there will have much difference between the FireFox or IE's ... behavie on handling buffered web page response. ... data and enable output buffer, both firefox and IE will provide blank ... So far I can't get some other options for the buffered web pages, however, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Can you decrypt this?
    ... Let's stretch within the acute scripts, but don't reproduce the ... polite ownerships. ... We commission the previous enzyme. ... resume in response to it. ...
    (sci.crypt)
  • Re: query-based update failed
    ... Yes, we can reproduce it every time for a specific record, not randomly. ... Look forward to your response. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.sqlserver.odbc)