Question: I want to hide the minus value from the print during formatting in JSF. How can I achieve that.

For Example,

The Value : -340
Need to Display as : 340.00
Not like -340.00 or (340.00)

Is that possible? The current code is like that, but can not hide minus value.

```
<h:outputText value="#{paymentBill.amount}" >
    <f:convertNumber pattern="#0.00" />
</h:outputText>

```

Answer: 
If it's `<h:outputText>` then you can use arbitrary EL expression as its `value`, if you're so dissatisfied with getting absolute value while preparing data in your managed bean, as it's rightly proposed by perissf and fareed, like:

```
value="#{(paymentBill.amount lt 0) ? -paymentBill.amount : paymentBill.amount}"

```
You can return the absolute value of the amount In the backing bean.

Return `Math.abs(amount)` instead of amount.