Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 2741 invoked from network); 13 Jan 2010 14:38:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 14:38:18 -0000 Received: (qmail 77565 invoked by uid 500); 13 Jan 2010 14:38:18 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 77452 invoked by uid 500); 13 Jan 2010 14:38:17 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 77441 invoked by uid 99); 13 Jan 2010 14:38:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 14:38:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 14:38:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 79843234C48D for ; Wed, 13 Jan 2010 06:37:54 -0800 (PST) Message-ID: <152096049.214831263393474496.JavaMail.jira@brutus.apache.org> Date: Wed, 13 Jan 2010 14:37:54 +0000 (UTC) From: "shu kai yuan (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (IO-226) question with byteCountToDisplaySize(long size) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org question with byteCountToDisplaySize(long size) ----------------------------------------------- Key: IO-226 URL: https://issues.apache.org/jira/browse/IO-226 Project: Commons IO Issue Type: Bug Components: Utilities Reporter: shu kai yuan I do not understand the byteCountToDisplaySize(long size) method which is in class FileUtils of the package org.apache.commons.io. If the parameter size is 2047 , the method will return 1 KB.Why it will lose precision. I read the code. Maybe it is a bug? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.