https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93727
--- Comment #27 from Thomas Henlich <thenlich at gcc dot gnu.org> --- (In reply to Jerry DeLisle from comment #25) > I notice with other formats we issue Inf or Infnity if there is width > available for the full word. I can do this easily. NaN is NaN. Infinities > can have a sign. For EX0.0 I will use the shortest Inf or -Inf. > > Also with the value 0.0 The shortest is 0X0.P0 or should we use 0X0.0P0. I > will see what others do. I thought I would toss this out for comment. 13.7.2.3.6 EX editing 4 For an internal value that is an IEEE infinity or NaN, the form of the output field is the same as for Fw.d. 13.7.2.3.2 F editing 9 For an internal value that is an IEEE infinity, the output field consists of blanks, if necessary, followed by a minus sign for negative infinity or an optional plus sign otherwise, followed by the letters ’Inf’ or ’Infinity’, right justified within the field. The minimum field width required for output of the form ’Inf’ is 3 if no sign is produced, and 4 otherwise. The minimum field width required for output of the form ’Infinity’ is 8 if no sign is produced, and 9 otherwise. If w is greater than or equal to the minimum required for the form ’Infinity’, the form ’Infinity’ is output. If w is zero or w is less than the minimum required for the form ’Infinity’ and greater than or equal to the minimum required for the form ’Inf’, the form ’Inf’ is output. Otherwise (w is greater than zero but less than the minimum required for any form), the field is filled with asterisks. 10 For an internal value that is an IEEE NaN, the output field consists of blanks, if necessary, followed by the letters ’NaN’ and optionally followed by one to w−5 alphanumeric processor-dependent characters enclosed in parentheses, right justified within the field. If w is greater than zero and less than 3, the field is filled with asterisks. If w is zero, the output field is ’NaN’. NOTE 2 The processor-dependent characters following ’NaN’ might convey additional information about that particular NaN.
