Calculators that allow direct operations on data stored on persistent storage?
|
03-01-2018, 06:15 PM
Post: #12
|
|||
|
|||
RE: Calculators that allow direct operations on data stored on persistent storage?
Here's an example of some helper routines that would translate some of your data back and forth between a list format and storage format. The ListExt library is required for several of the commands. I realize that your actual data doesn't match the format I'm using here, but I wanted to show several different examples in these two routines to illustrate how the conversions could be done.
In the above example, a vector was shown that appeared to have the data for a given day. I've converted it to a list for this example: Code: { 20.062017 5. 4. 0. 2. 4. 3. 3. 4. 2. 3. 0. 4. 4. 3. 4. 2. 0. 0. 360. } Using that same data as the starting point, the following code will convert the list to a string representation: Code: \<< The padding is required to make sure that the first and last entries always use a consistent number of digits. The result of the above routine with the specified data becomes "@[PXTS*M'H4iT7". That's not very useful in terms of readability, but for storage it's only 19 bytes compared to the 71 bytes used by the list. You could easily save even more by stringing together multiple day's worth of entries. The following is the reciprocal to the above: Code: \<< |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)