"Griggs, James" wrote:
> Any reason the following statement would always produce a 0?Other
> expressions work just fine when the result of the first calculation is
> above 1 (eg: 5+2*100). Is this a rounding issue ???<%=4/8*100 %>
Yes ... it gets zero because that is the correct answer.
You might want to review how computers do integer arithmetic -- 4
divided by 8 is zero, which (when multiplied by 100) is still zero.
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html