2018.2

Table Of Contents
var js = loadtext("js/my-script.js");
results.append(query("<script>").text(js));
The following script loads a style sheet (from the Resources pane) into the <style> element.
var css = loadtext("css/my-styles.css");
results.append(query("<style type='text/css'>").text(css));
Number functions
Note
The locale also influences the output of some Number functions; see "Locale" on page290.
currency(value)
Formats a number as an amount of money. Which currency symbol and which thousands
separator are used depends on the Locale; see "Locale" on page290.
value
A number. Note that all data fields contain strings. Strings need to be converted to a number
before passing them to this function.
currency(value, pattern)
Formats a number as an amount of money using a custom pattern. Which currency symbol and
which thousands separator are used depends on the Locale; see "Locale" on page290. For
available patterns, see "Number patterns" on the facing page.
value
A number. Note that all data fields contain strings. Strings need to be converted to a number
before passing them to this function.
pattern
A custom pattern that may consist of symbols; see "Number patterns" on the facing page.
Note that the repetition of pattern letters plays a part in determining the exact presentation.
currencyNoSymbol(value)
Formats a number as a currency whilst omitting the currency symbol.
Page 743