D13172: Add AFNumber_Format and l10n AFSimple_Calculate

Albert Astals Cid noreply at phabricator.kde.org
Mon May 28 15:15:42 UTC 2018


aacid added inline comments.

INLINE COMMENTS

> aheinecke wrote in builtin.js:91
> No, using to currency is just a trick! :-) The aim is to use a nice function that offers a number format with separators, and decimal handling with rounding and precision.
> 
> If sepStyle is 0 then we just remove the currency seperators.
> 
> If you have a suggestion for a Qt function that better matches the behavior I'm all for it. But from reading the AF_NumberFormat docs I thought" ok QLocale::toCurrency is the best match" and we can just remove the seperators if sepstyle is zero.

QLocale::toString ?

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D13172

To: aheinecke, aacid
Cc: okular-devel, ngraham, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180528/94f5bb1b/attachment.html>


More information about the Okular-devel mailing list