Using Mathematica
Binary String: "FBCD"
#1
I: ImportString["FBCD", {"Binary", "Bit"}]
O: {0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, \
0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0}
#2
I: ImportString["FBCD", {"Binary", "UnsignedInteger32"}]
O: {1145258566}
#3
I: ImportString["FBCD", {"Binary", "Byte"}]
O: {70, 66, 67, 68}
What is actual math formula using the byte values {70, 66, 67, 68} in the output of #3 to get the int32 value {1145258566} in the output of #2?
(70^4)+(66^3)+(67^2)+68
I know this isn’t correct, looking for the correct formula if there is one.
( ( ( 68 * 256 ) + 67 ) * 256 + 66 ) * 256 + 70 = 1145258566