Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Percent.java

00001 package gov.nasa.arc.ase.util;
00002 
00003 public class Percent {
00004   public static String format(long num, long det) {
00005     double n = num;
00006     double d = det;
00007 
00008     double p = 100.0 * num / det + 0.5;
00009 
00010     return ((int)p) + "%";
00011   }  
00012 }

Generated at Thu Feb 7 06:51:50 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001