I have a text file:
float a[10] = {
7.100000e+000 ,
9.100000e+000 ,
2.100000e+000 ,
1.100000e+000 ,
8.200000e+000 ,
7.220000e+000 ,
7.220000e+000 ,
7.222000e+000 ,
1.120000e+000 ,
1.987600e+000
};
unsigned int col_ind[10] = {
1 ,
4 ,
3 ,
4 ,
5 ,
2 ,
3 ,
4 ,
1 ,
5
};
Now I want to convert each array (float / unsigned int) into different binaries - big endian type, binary for all float values and binary for all integer values.
What is an easy way to do this in Perl, think what I have over two millionth elements in each array?
YoDar source
share