'Suggestions on how to format a number as currency in IBM Watson Assistant

I am not able to figure out how to format amounts (integer, decimal, etc..) as currency in IBM Watson Assistant. Thank you!



Solution 1:[1]

There are additional details here - https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax

T(String).format('%,.2f',$number)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sgn