Boost logo

Boost Users :

Subject: [Boost-users] IEC/SI Binary Prefix Formatter
From: Rodrigo Madera (rodrigo.madera_at_[hidden])
Date: 2009-03-02 13:00:28

Hello guys,
I'm wondering if in the Boost universe we already have something to format
numbers according to IEC's "new" prefixes (such as MiB and GiB) or SI
prefixes (such as MB and GB).

What I'm looking for is something like:

formatter << boost::iec_prefix << 5*1024*1024;
// Will output "5 GiB"

formatter << boost::si_prefix << 5*1024*1024;
// Will output "5GB"

Do you have anything like this?

Thank you for your support,
Rodrigo Madera

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at