On Wed, 24 Nov 1999, 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 %>

Are these ints?  4/8=0 for ints.  Try numresponses*100/numrequests.

John K Peterson  --  IT Services Development  --  Brigham Young University
Internet: [EMAIL PROTECTED]                      Phone: (801) 378-5007

===========================================================================
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

Reply via email to