Re: PCML Structure length
Barbara Morris <[email protected]> Mon, 8 Aug 2022 18:22:18 -0400
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Organization | IBM |
| Message-ID | <[email protected]> |
On 2022-08-05 3:36 p.m., Augusto Sepulveda Bilbao wrote:
> What I see is the lenght for binary ("type="int" length="4"?) it should be ("type="int" length="10"?)
> Binary to int
> 2 = 5
> 4 = 10
> 8 = 20
>
For PCML, the lengths of integer types are measured in bytes, so 1, 2,
4, and 8 are the correct lengths.
I think it is only RPG that has the strange behaviour of measuring
integers by digits, 3, 5, 10, and 20.
--
Barbara
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com