hi, someday I have same question, but only now found right solution
(instead of hard-coded value) via pdl shell ("??size" than "?howbig"):

use PDL::Core ':Internal';
say howbig(pdl(float)->get_datatype);



On 18 January 2013 01:22, Chris Marshall <[email protected]> wrote:

> How can one determine the size of a PDL data type?
> For various IO reasons, I need the number of bytes
> for PDL data types (e.g., sizeof(float), which doesn't
> work).
>
> Thanks much,
> Chris
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to