Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
Yes, of course this can be done, The only difference in the two variables is the internal format that the computer uses to store the numbers.
If you wanted to store a numbet +1234.5678. The S9(4)v9(4) would have a hex value of 'F1F2F3F4F5F6F7C8' with the assumed decimal point, and the S9(9)v9(4) COMP-3 would have an internal hex value of X'012345678C', also with the assumed decimal point.