Skip to main content
Hello there,

I need to display 2 different types of decimal place number one with one decimal like (300.4) and other with 2 decimal places like (192.56)

I did some search and I found below logic but still I am unable to display decimal places.

 

<apex:outputText value="{0, number, ⌗⌗⌗.⌗⌗}">

     <apex:param value="{!amountVarienceValue}" />

  </apex:outputText>

 <apex:outputText value="{0, number, ⌗⌗⌗.⌗}">

     <apex:param value="{!amountVarienceValue}" />

  </apex:outputText>

Can please anyone just how to display decimal places on visual force page.

Thank you.
1 answer
  1. Jun 28, 2016, 10:05 PM
    Use this,

    <apex:outputText value="{0, number, 000,000.00}">

           <apex:param value="{!amountVarienceValue}" />

     </apex:outputText>

    Hope this will work.
0/9000