Re: conversion ??

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mike Sabal wrote:

>I'm too lazy to double check this right now, but perhaps this is what you
>want:
>
>*** Untested code ***
>
>integer myint
>sequence a32, a16
>
>myint = 24000
>a32 = int_to_bytes(myint)
>a16 = a32[3..4]
>
>*********************

int_to_bytes(24000) returns {192,93,0,0} -- so the last line should be:

a16 = a32[1..2]


Gabriel Boehme

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu