You need to sign in to do that
Don't have an account?
Anil Dutt
Remove Decimal from number
Hi,
I have a iFrrame in my VF page
<apex:iframe id="theIframe" src="http://test.com?opportunityId={!Test_Flight_Request__c.Opportunity__c}&flightRequestID={!Test_Flight_Request__c.id}&passengers={!Test_Flight_Request__c.Pax_del__c}" width="1500px" height="600px" scrolling="true" />
Test_Flight_Request__c.Pax_del__c has data type Number and so it has value Like 2.0
Because of decimal number this value does not pass in query string
How can i remove Decimal number from 2.0 in VF page?
Thanks for any help
This solves the problem
{!Text(Test_Flight_Request__c.Pax_del__c)}
Thanks All
All Answers
You will have to modify the value in the controller to make it not have a decimal. You could convert it to text and manipulate the string or maybe set the precision to 0 or use integet.valueOf()
To simply display on the page without the decimal you would:
<apex:column HeaderValue="Utilization" >
<apex:outputText value="{0,number,#.##}">
<apex:param value="{!a.Utilization__c}"/>
</apex:outputText>
</apex:column>
but I do not believe that is your sceniero.
Hi Anil
Please try this code.
eE_remaining = 123.45
integer k = eE_remaining.intvalue();
Value of K = 123;
Thanks
Anu
Can't i do anything in Visual Force Page?
This solves the problem
{!Text(Test_Flight_Request__c.Pax_del__c)}
Thanks All