---
title: "Format a number as currency scripted field"
canonical: "https://support.appfire.com/space/PSJC/852820341/Format%20a%20number%20as%20currency%20scripted%20field"
format: markdown
---
> Macro (aura-html)


## Problem

You would like to display a numeric custom field as currency.

## Solution

This script assumes there is a [SIL alias](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/496206057) for the custom field containing the number value.

```
return formatNumber(someNumber, "$###,###.0#");
```

Example output: `$16,546,987.21`