주식 자동매매 시스템

파이썬을 이용한 주식 자동매매 시스템

이미지
파이썬을 이용한 주식 자동매매 시스템 INDEX 환경구축 키움증권 API - 연결테스트 키움증권 API - 계좌정보 조회 키움증권 API - 주문 키움증권 API - 종목정보 가져오기 포트폴리오 - 종목, 업종별 자산 포트폴리오 한국투자증권 API API reference 키움 OpenAPI+ 개발가이드 한국투자증권 OpenAPI 다운로드 및 가이드 Design https://www.design-seeds.com/in-nature/succulents/cacti-color-2/ https://create.piktochart.com/dashboard

[C] printf format %

The % Format Specifiers


%c char single character

%d (%i) int signed integer

%e (%E) float or double exponential format

%f float or double signed decimal

%g (%G) float or double use %f or %e as required

%o int unsigned octal value

%p pointer address stored in pointer

%s array of char sequence of characters

%u int unsigned decimal

%x (%X) int unsigned hex value



Internally what matters is the bits arrangement not the statements.
 unsigned int ui = 0xffffffff;

 printf("%d", ui);       // -1
 printf("%u", ui);       // 4294967295

When you say to the 'printf' "%u"
you're saying: "interpret my word as a unsigned bit arrangement",
and in the other side, when you say "%d"
you're saying "interpret my word as a signed bit arrangement".

%u를 쓰면 ui 변수의 bit array를 unsigned int로 해석하고 출력
%d를 쓰면 ui 변수의 bit array를 signed int 처럼 해석하고 출력한다.

 int si = 0xffffffff;

 printf("%d", si);       // -1
 printf("%u", si);       // 4294967295

int 는 default type이 signed int이다.

이 블로그의 인기 게시물

Linux에서 CSV파일 사용방법

R에서 외부 데이터 이용하기 (Excel, csv)

[R 함수] aggregate, apply 사용 방법