| 
					
	
	
	
	
				 | 
				
					
	
	 
		Formatting a very large double crashes my system (gcc3.0.4, RH7.2). Below is
 the program.
 This is probably a bug in sprintf, but I was not able to confirm. Am I the
 only lucky one?
  Thanks, Vadim
  #include <ql/quantlib.hpp>
  using namespace std;
 using namespace QuantLib;
  int main()
 {
   double x = 7.75285e+306;
    cout << DoubleFormatter::toString(x) << endl;
    return 0;
 }
  -------------------------------------------------- 
 DISCLAIMER 
 This e-mail, and any attachments thereto, is intended only for use by the
 addressee(s) named herein and may contain legally privileged and/or
 confidential information.  If you are not the intended recipient of this
 e-mail, you are hereby notified that any dissemination, distribution or
 copying of this e-mail, and any attachments thereto, is strictly prohibited.
 If you have received this e-mail in error, please immediately notify me and
 permanently delete the original and any copy of any e-mail and any printout
 thereof. 
  E-mail transmission cannot be guaranteed to be secure or error-free.  The
 sender therefore does not accept liability for any errors or omissions in
 the contents of this message which arise as a result of e-mail transmission.
  NOTICE REGARDING PRIVACY AND CONFIDENTIALITY 
  Knight Trading Group may, at its discretion, monitor and review the content
 of all e-mail communications. 
 
 
  
	
	
	
	 
				 |