Display Number in Dollar() Format

Can someone please tell me the best way to display this decimal number in dollar() format in my SAIL form? Here's my code:

a!floatingPointField(
label: "Total Cost",
labelPosition: "ABOVE",
value: ri!totalCost,
saveInto: ri!totalCost
refreshAfter: "UNFOCUS",
required: true,
validations: {}
)

OriginalPostID-247183

  Discussion posts and replies are publicly visible