# Rounding the Price in Product Cards

In the template code for displaying product prices, you typically encounter the following structure:

```html
<p class="plan-price"><span>#{currency.symbol}#</span>#{price}#</p>

<p class="font-normal no-margin priceCurrency">#{currency.text}#/#{billingPeriod}#</p>

<div class="button-wrapper">

   <button class="btn btn-primary" data-bind="click: select">SELECT</button>

</div>
```

In the first line, you find a dynamic price variable `#{price}#`. To format this price to always display two decimal places, replace the `#{price}#` variable with a formatted number line like so:

```groovy
<g:formatNumber number="#{price}#" format="###,##0.00"/>
```

With this adjustment, the price will be displayed with two decimal places, enhancing clarity and consistency in price presentation across product cards.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.peakcommerce.com/developers/product-cards/rounding-the-price-in-product-cards.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
