I think you're misunderstanding what I mean. I want a function that returns the integer number value of the byte size of a numerical data type.
Here is the work around that I have devised.
GetTypeSize[datatype_] :=
(
Module[
(*incoming parameters*)
{atype=datatype},
Block[{fp},
fp = OpenWrite["a1234pacximus.bin",BinaryFormat->True];
a = BinaryWrite[fp,1,atype,ByteOrdering->-1];
Close[fp];
];(*end block*)
FileByteCount["a1234pacximus.bin"]
](*end of module*)
)
(*end if GetTypeSize*)
Examples of calling this function would be:
realsz = GetTypeSize["Real32"];
intsz = GetTypeSize["Integer24"];
I thought the language designers may have a function for getting the size of a type already.