Tokyo Cabinet allows arbitrary byte sequences as both key and value, so the schema is really up to you. The first step is to decide how to store each number. This could be float, double, or fixed point (e.g. BigDecimal).
Then, you decide how to serialize the array. This could be contiguous:
num => 1 2 444 0.987
The TC value is simply all the numeric values concatenated together. E.g. using 32-bit floats:
num => 0x 3f 80 00 00 40 00 00 00 43 de 00 00 3f 7c ac 08
Another possibility is a linked list:
key => num next_key
1 => 1.1 2
2 => 2 3
3 => 444 4
4 => 0.987 0
You concatenate the current value and the next key in the array
This provides the traditional benefits of a linked list, including inserting in the middle easily.