I have a variable that consists of a very large number (up to 18 digits) that is in string format. I want to convert it to numeric. When I run the alter type function, some of the value convert correctly, but many convert into entirely different numbers. For example, 570100012002002104 in string format would be converted to 570100012002002110 (notice the last 2 digits are different) in numeric after running the following syntax:
alter type stringnum (f18).
EXECUTE.
Has anyone encountered this or know how to accurately convert large numbers from string to numeric?
Thank you in advance for any help!
#SPSSStatistics#Support#SupportMigration