UNIX

FixMe

Nov 10th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.         //TODO: Fix the rounding issue, will output ^6 more digits instead of
  2.         // rounding that off to the hundred thousandth place.
  3.     public static double upConvertBytes(){
  4.         double megabytes;
  5.         double conversionFactor = .000001;
  6.         double bytes = Runtime.getRuntime().freeMemory();
  7.        
  8.         megabytes = bytes * conversionFactor;
  9.        
  10.         return megabytes;
  11.     }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment