commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shu kai yuan (JIRA)" <>
Subject [jira] Created: (IO-226) question with byteCountToDisplaySize(long size)
Date Wed, 13 Jan 2010 14:37:54 GMT
question with byteCountToDisplaySize(long size)

                 Key: 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
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.

View raw message