我正在使用 DisplayTag 表库来呈现我的表,它提供了为数据指定 messageFormat 模式的选项。我很难找到正确的格式以下是我要编写的格式
1. given a double print its currency representation without decimal points e.g 25.25 as $25
2. if a negative double is given it must print -$25 currently its printing ($25)
3. if double is 0.00 the it should not be printed