RFC: Units of measurement for D (Phobos?)
D.Enguiyen via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 15 07:52:16 PDT 2016
On Tuesday, 15 March 2016 at 14:50:42 UTC, D.Enguiyen wrote:
> On Tuesday, 15 March 2016 at 14:46:30 UTC, D.Enguiyen wrote:
>> Is it able to manage quantities with a non-linear
>> transformations, for example when dealing with octet and byte ?
>>
>> (1024)!"byte" == 1!"kbyte";
>
> 1!"byte" * 1024 == 1!"kbyte";
I meant
byte!1 * 1024 == kbyte!1;
More information about the Digitalmars-d
mailing list