W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2015

[Bug 28514] [QT3] format-integer-044 does not take minus-sign into account

From: <bugzilla@jessica.w3.org>
Date: Mon, 20 Apr 2015 14:01:15 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28514-523-21cMUfZg6h@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28514

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Michael Kay <mike@saxonica.com> ---
I think code that wants to handle negative numbers with format-integer will
often apply format-integer to the absolute value, and then "do its own thing"
to indicate that it is negative. For example

"The temperature is " || format-integer(abs($N)) || " degrees " || (if ($N gt
0) then "above zero" else if ($N lt 0) then "below zero" else "".

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 20 April 2015 14:01:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:53 UTC