Income tax season is coming quick and I reached for my favorite number crunching tool to add everything up, however I ran into a problem:
q)
q)income: 9223372036854775806
q)income
9223372036854775806
q)
q)income: 9223372036854775808
'9223372036854775808
q)income
9223372036854775806
q)
Looks like the biggest integer type in q is 64-bits *signed*, what if I have to interface with systems with 64-bits unsigned integers?
For example, I have CSV files to upload to KDB. In said files one column is Exchange Order IDs, which come in as 64-bits unsigned integers. I don’t want to use symbols as to not bombard the symbol table. Strings are inconvenient because comparing them is slow. Casting/converting said Order IDs to 64-bits signed integers prior to uploading to KDB would work but then I need to write a script to pre-process the CSVs and the number will be different to what’s in the rest of our systems. Am I missing an easier way to do this?
Thanks,
Alex