Saturday, December 10, 2016

Round Off Field Values in VF page

Suppose a field (Opportunity Amount field) value is 12.34 and you have to round off it to 1 decimal places on VF page, Then use below syntax:

<apex:page standardController="opportunity" >
<apex:outputText value="{0, number, ###,###.0}">
<apex:param value="{!opportunity.amount}"/>


Output on VF page will be 12.3

Note: This work perfectly for number ,percent, and currency fields.

Refer Below Links for Salesforce Interview Questions


  1. How beautifully all the feelings have been conveyed through writing.

  2. I just thought it may be an idea to post incase anyone else was having problems researching but I am a little unsure if I am allowed to put names and addresses on here. niche ralevant blogcomment

  3. Optimization of websites is a very important strategy to deliver the best results. SEO or search engine optimization using the best proven strategies helps to make business websites appealing to search engines. ralevant backlink

  4. Research also shows that some SEO service providers operate on high volume basis. Such SEOs provide simple SEO services at very low monthly rates. Niche

  5. If you want to use backlinks to your best interest, edu blogs are effective. Using this opportunity correctly, you will be able to increase traffic to your site. off page seo
    The tip that professionals use is the promise to find those which are 'do follows' and benefit SEO pages. niche ralevant blogcomment