|
-
February 19th, 2006, 08:55 PM
#1
how to split Float,Long and Int into set of Bytes
hi guys,
I have done this in C With Unions and Structure but how to do this in VIsual Basic.
How To split a 4 byte IEEE format Float number to 4 respective character bytes. e.g. 1234.56 = hex= 0x449A51EB this is a floating no convert this in
ch1 = 0x44h,
ch2 = 0x9Ah
ch3 = 0x51h
ch3 = 0xEBh
Also how to split Long integer which is also 4 bytes
I can do this in C by using union, by declaring inside , a floating point number and then structure of 4 characters.
please help
Yogi
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|