Page 2 of 2

Re: got wrong data while converting Binary data Zoned decima

PostPosted: Mon Sep 30, 2019 11:43 pm
by Robert Sample
Actually, the lengths should be 10 and 5 -- I was looking at the 14 length you posted and didn't think through the data when posting earlier. A 2-byte binary value will be in the range of either -32768 to 32767 or 0 to 65535 depending on whether the value can be negative or not. A 4-byte binary value range will be -2147483648 to 2147483647 or 0 to 4294967296 depending on whether the value can be negative or not. Hence the 5 or 10 digits of zoned decimal data.