Skip to content

Commit d4f99a5

Browse files
committed
Documentation
1 parent 82d9651 commit d4f99a5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Format Money Modifier
3+
description: "The `format_money` modifier converts an amount (in pence) to a nicely formatted string, like `£190.55`."
4+
---
5+
6+
The `format_money` modifier converts an amount (in pence) to a nicely formatted string, like `£190.55`.
7+
8+
```php
9+
special_calculation: '19055'
10+
```
11+
12+
::tabs
13+
::tab antlers
14+
```antlers
15+
{{ special_calculation | format_money }}
16+
```
17+
::tab blade
18+
```blade
19+
{{ Statamic::modify($specialCalculation)->formatMoney() }}
20+
```
21+
::
22+
23+
```php
24+
£190.55
25+
```

0 commit comments

Comments
 (0)