The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


integer values

Posted by Joe on January 18, 2001 at 12:59 AM

I'm having trouble with the following
Note: assume h and dg have already been declared as arrays..

How do I create integer values stored in array h into a series of degree values
as follows:
dg[k] = (h[k]*360)/s where s is the sum of all values in array h.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us