If you post the data you're getting or spec, that help...
In 7.16 and above, the :convert can do some of the arithmetic. And all version support bit shifts/OR/XOR/ANDs when dealing a number type. Exactly the right incantation, some recieved output help...
At a high-level, you can do:
:put [:convert from=hex to=num FFFFFFFFFFFFFFF
F]
1844674407370955161
5
:put [:convert from=hex to=num FFFFFFFFFFFFFFF
E]
1844674407370955161
4
And you can also use to=byte-array (or to=bit-array-msb, -lsb), to get an array from the 64-bits - this is useful for flags and "groups of bit" flags.
:put [:convert from=hex to=byte-array FFFFFFFFFFFFFFFF].
I have an rough example of using this things to parse LoRa data here (but it doesn't deal with num types):
viewtopic.php?t=211581&hilit=lora