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.

    1. Great Article. Thank you for sharing! Really an awesome post for every one.

      IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

      JavaScript Training in Chennai

      JavaScript Training in Chennai

  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

  6. We are all here to provide you the best SEO agency in the world. We provide seo backlinks that even with 100% guaranteed the result. So, give us a chance to serve you and let your business thrive. niche relevant backlinks

  7. This is only the data I am discovering all over the place. A debt of gratitude is in order for your website, I simply subscribe your online journal. This is a decent blog.. All Nofollow links

  8. I will explain eight high quality methods of getting targeted SEO backlinks to your site in this two-part article. Seo backlinks

  9. Extremely intriguing online journal. A lot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definitely inspired by this one. Recently felt that I would post and let you know. High Authority DA PA Service