infinity 1.#INF is not shown correctly when cout.precision(2) or (3) - by Paul A Bristow

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


0
0
Sign in
to vote
ID 240227 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 11/22/2006 9:49:21 AM
Access Restriction Public

Description

infinity 1.#INF is not shown correctly when cout.precision(2) or (3) or  4

cout << std::numeric_limits<double>::infinity() << endl;

normally shows 1.#INF

but when stream precision is reduced to small values, like cout.precision(3)
it shows 1.#J 

cout.precison(4) #1.IO

It surely should show #INF whatever the precision chosen?
Sign in to post a comment.