Julia: 1024 bytes should be 1 kb

Created on 20 Oct 2016  路  1Comment  路  Source: JuliaLang/julia

It is only used in @time though, I will submit a pr.

Base.prettyprint_getunits(1024, length(Base._mem_units), 1024)
(1024.0,1)

Base.prettyprint_getunits(1025, length(Base._mem_units), 1024)
(1.0009765625,2)
display and printing

Most helpful comment

Either this should be 1.024 kB, or it should be displayed as 1.000 KiB.

>All comments

Either this should be 1.024 kB, or it should be displayed as 1.000 KiB.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Keno picture Keno  路  3Comments

manor picture manor  路  3Comments

wilburtownsend picture wilburtownsend  路  3Comments

m-j-w picture m-j-w  路  3Comments

musm picture musm  路  3Comments