<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>This follows up on</div><div><br></div><div><blockquote type="cite"><p class="MsoNormal" style="margin: 0in; font-family: "Times New Roman", serif;"><span style="font-size: 10.5pt; font-family: Calibri, sans-serif;">    Jim & group: Review trunc and canonicalize in Damian's Annex F update to come.<o:p></o:p></span></p></blockquote></div><div><br></div><div>For trunc consider: </div><div><br></div><div>F.10.7.9 #1</div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>The trunc functions perform ISO/IEC 60559 “toward zero” rounding, choosing only from among integer values of the type.</div><div>...</div></blockquote><div><br></div><div>Normally rounding chooses from among all numbers of the type. The suggested wording borrows from ISO/IEC 60559 which says "the rounding chooses only from among those floating-point numbers of integral values in the format." </div><div><br></div><div>The “(regardless of the current rounding direction mode)” isn’t needed because three lines down is "The returned value is exact and is independent of the current rounding direction mode.”</div><div><br></div><div>I think putting “toward zero” in quotes is more in line with C editorial practice than italicizing it, for example, as with the “invalid” floating-point exception.</div><div><br></div><div><br></div><div>In 7.12.10 the ceil and floor functions are specified as computing the mathematical ceil and floor operations.The round, roundeven, and trunc functions are specified as roundings. (This has historical roots and I’m not suggesting a change.)</div><div><br></div><div> In Annex F these functions are further specified to provide ISO/IEC 60559’s five roundToIntegralxxx operations (see C2Y Table F.2) corresponding to the five rounding directions. This suggests that the specifications (except for the example and references thereto) for these functions in F.10.7 be similar to each other. The form could be</div><div><br></div><div>F.10.7.n #1</div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>The xxx functions perform ISO/IEC 60559 “rrr” rounding, choosing only from among integer values of the type.</div><div><br></div></blockquote><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>— xxx(+/-0) returns +/-0.</div></blockquote><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>— xxx(+/-inf) returns +/-inf.</div></blockquote></blockquote><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><br></div><div>The returned value is exact and is independent of the current rounding direction mode.</div></blockquote><div><br></div><div><br><div>- Jim Thomas</div></div></body></html>