View previous topic :: View next topic
|
Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
I need to convert the comp3 field from S9(3)v9(15) Comp-3 to S9(2)v9(7) Comp-3.
Eg: (I am not showing in Hex format)
If the input is 123.123456789012345, i need to convert to
23.1234567
How to acheive this?
Thanks
R KARTHIK |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
while it might be <reasonable> to truncate less significant digits
not so for the most significant ones
what is the business reason to get rid of them ?
I would be glad if that was done for amounts debited on my current account,
not so much for the amounts being credited |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
Before the file definition was s9(2)v9(7) and now they changed to s9(3)v9(15). So for the current existing file definitely the most significant bit would be 0.
Current file data:
012.123456789111111
I want to convert to old file format
12.1234567
Thanks
R KARTHIK |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What happens when you MOVE the larger field to the smaller? Or COMPUTE? |
|
Back to top |
|
|
|