function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
fumiyafumiya 

数値型の表示について

お世話になります。

 

小数点の位置=0の数値型カスタム項目を画面表示すると、
1.0,2.0,・・・10.0
のように整数以外の部分も表示されてしまいます。

 

表示方法は以下のとおりです。
<apex:outputText value="{!カスタム項目名}"/>

 

1,2,・・・10
のように表示したいのですが対応方法をご教授ください。

 

よろしくお願いします。

Best Answer chosen by Admin (Salesforce Developers) 
yumayuma
<apex:page standardController="Account">It is worth:
<apex:outputText value="{0, number, 000,000.00}">
       <apex:param value="{!Account.AnnualRevenue}" />
 </apex:outputText>
</apex:page>

All Answers

yumayuma
<apex:page standardController="Account">It is worth:
<apex:outputText value="{0, number, 000,000.00}">
       <apex:param value="{!Account.AnnualRevenue}" />
 </apex:outputText>
</apex:page>
This was selected as the best answer
fumiyafumiya

期待通りの結果が得られました。

 

早々ご教授いただきありがとうございました。