LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 23 Jul 2003 18:31:23 +0200
Reply-To:     Hanna Zaremba <h.zaremba@cbos.pl>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Hanna Zaremba <h.zaremba@cbos.pl>
Subject:      Re: How do I change a numeric to a string or vice versa?
Content-Type: text/plain; charset="iso-8859-2"

Hi Just use the NUMBER function, it converts numeric variable to string (see description below). Hanna

Conversion Functions NUMBER(arg,format) Convert the argument into a number using the specified format. The argument is string, the format is a numeric format, and the result is nu-meric. The string is essentially reread using the format and returned as a number. For example, NUMBER (XALPHA,F3.1) converts all values for XALPHA to numbers using the F3.1 format. The function returns the system-missing value if the conversion is invalid. STRING(arg,format) Converts the argument into a string using the specified format. The ar-gument is numeric, the format is a numeric format, and the result is a string. The number is converted from internal representation according to the format and then stored as a string. For example, STRING (INCOME, DOLLAR8) converts the numeric values for INCOME to the dollar format and returns it as a string value. If the result is shorter than the string vari-able that receives the values, it is right-justified. If the result is longer, it is right-trimmed.

Użytkownik "Ro, Shungwon" <Shungwon.Ro@state.mn.us> napisał w wiadomości news:59C0A33CC7E0944CAA302A9F25EB9C6E678602@dcflmail3... > Thank you. > > Shungwon >


Back to: Top of message | Previous page | Main SPSSX-L page