I have called some numbers from a mysql database, they come out like this:

${parish.TotalHouseholds}

Now what i would like to do is take the TotalHouseholds and TIMES it by 21.33% and display the answer in a separate cell and i was wondering if anybody could give me a plain english example of writting the sum in java?

thanks in advance.

*

eyah i did realize that * is how you would writeit but was looking for a more detailed example

would the whole thing be for example:

${parish.TotalHouseholds} = totalHouseholds
percentage = 21.33%

answer = totalHouseholds * percentage

it looks to much like php to me hence the feeling i am wrong

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.