What’s in the new 2.8.1 release of JsWorld?
Up to now the default behaviour was to leave the fraction part of the original input amount unchanged.
var lc = new jsworld.Locale(POSIX_LC.en_US);
var mf = new jsworld.MonetaryFormatter(lc);
To enforce rounding and display to a certain precision the optional
".n" argument can be used, where
n is the number of desired fraction digits.
Yesterday I received an email from a customer in the US from which it became apparent that the default non-rounding behaviour was not intuitive to developers. After some consideration I decided to patch the library code to round per default, based on the number of fraction digits for the selected currency. The optional “.n” facility remains the same.
So the above
will now instead result in
The patched version is now available as JsWorld 2.4.1.
The core logic and API are pretty solid and settled now. No planned changes.
The locale database is scheduled for a small update in summer. At present it is based on Unicode’s CLDR 1.9 which supports over 300 locales, 200 countries and 100 currencies. Earlier this year there was a minor 1.9.1 release, but the fixes introduced there have no effect on number, date/time and monetary formatting. According to the tentative schedule published on the Unicode page a new major 2.0 release is planned for the end of May. Once the new locale data arrives I’ll regenerate the JsWorld database and put the new version as 2.4.1 up.
Otherwise I’m pretty busy these days, attending to various events here in London and also bringing the final bits of the NimbusDS.com website together. Nimbus DS is my latest venture to provide developers and integrators with specialised directory service solutions for web and cloud applications. This will become the new home of the Json2Ldap gateway / proxy, as well as of the newer JsonSSO and AuthService products.
Existing license holders were notified where they can download the update for no additional charge. If you haven’t received your email or have any questions or comments about this update – get in touch with me.