|
Boost Users : |
Subject: Re: [Boost-users] IEC/SI Binary Prefix Formatter
From: Rodrigo Madera (rodrigo.madera_at_[hidden])
Date: 2009-03-02 13:26:19
Hope nobody actually used my inputs for any test case! :-$
On Mon, Mar 2, 2009 at 3:20 PM, Ovanes Markarian <om_boost_at_[hidden]>wrote:
>
>
> On Mon, Mar 2, 2009 at 7:00 PM, Rodrigo Madera <rodrigo.madera_at_[hidden]>wrote:
>
>>
>> formatter << boost::iec_prefix << 5*1024*1024;
>> // Will output "5 GiB"
>>
>> formatter << boost::si_prefix << 5*1024*1024;
>> // Will output "5GB"
>>
>>
> Small correction, this should output 5 megs and not 5 gigs ;)
>
> Ovanes
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net