[Reference] System.Str
Delphi
procedure Str(const X [: Width [:Decimals]]; var S: String);
Properties
Type |
Visibility |
Source |
Unit |
Parent |
procedure |
public |
System.pas |
Description
Formats a string and returns it to a variable.
In Delphi code, Str converts X to a string representation according to the Width and Decimals formatting parameters.
The effect is similar to the one of a call to Write, except the resulting string is stored in S instead of being written to a text file.
X is an integer-type or real-type expression.
Width and Decimals are integer-type expressions.
S is a string-type variable or a zero-based character array variable, if extended syntax is enabled.
문자열을 형식화하고 변수에 반환합니다.
Delphi 코드에서 Str은 X를 Width 및 Decimals 형식 매개 변수에 따라 문자열 표현으로 변환합니다.
이 효과는 결과 문자열이 텍스트 파일에 쓰여지는 대신 S에 저장된다는 점을 제외하고는 Write 호출 중 하나와 비슷합니다.
X는 정수형 또는 실수형 표현입니다.
Width와 Decimals는 정수형 표현식입니다.
확장 구문이 사용되는 경우, S는 문자열 유형 변수 또는 0부터 시작하는 문자 배열 변수입니다.
representation 미국·영국 [|reprɪzen|teɪʃn] 1. (특정한 방식으로의) 묘사; (어떤 것을) 나타낸
것 …에 따라서; 일치하여. accord 미국식 [ə|kɔ:rd] 1. (기관・국가 간의 공식적인) 합의 similar 미국·영국 [|sɪmələ(r)] 비슷한, 유사한, 닮은 except 미국·영국 [ɪk|sept] 1. (누구・무엇을) 제외하고는
|
출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.Str