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
Michael DsozaMichael Dsoza 

get difference of two values in visualforce page

I am making a table with dyanmic value in vfpage & in one cell I want to show difference of two value but I tried the below thing but it shows in error as syntax error .

I tried the folllowing things to get difference....

value = {! ( {!Firstvalue} - {!Secondvalue} )}

but it prints the value as 5000-3000 not the difference of this as 2000.

Please tell me how can I do this...

Abhishek_PareekAbhishek_Pareek

try this, value="{! (Firstvalue - Secondvalue )}"