01-11-2023 04:28 AM
01-11-2023 05:48 AM
Hi Boris,
@borisC wrote:
How can I convert a 1D array of dynamic data to a 1D integer array?
Use a FOR loop to autoindex your DDT array. Place a FromDDT inside the loop and convert to "integer". Create an array by using an autoindexing output tunnel…
Suggestions:
01-11-2023 09:29 AM
Dynamic data is an opaque container that can contain a lot of different stuff. An array of dynamic data is even worse!
Most dynamic data is not really well suited to be converted to an integer array, (typical inner data is arrays of DBL or boolean plus timing and other metadata!)
You should probably ask yourself why you have an array of dynamic data in the first place. What does the data represent? What you want to do with it?
I have the nagging feeling that you are looking for a solution in the wrong place. Maybe the problem should be solved more upstream. I am sure we can give you much more specific advice once you show us a (possibly simplified) version of your code.
01-11-2023 01:11 PM
Try using the "To Double Precision Float" function (under Numeric -> Conversion).