본문 바로가기 메뉴 바로가기

L'atelier chez moi

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

L'atelier chez moi

검색하기 폼
  • 분류 전체보기 (103)
    • Programming (79)
      • Basic (7)
      • Swift (28)
      • SwiftUI (18)
      • iOS (14)
      • Translating (1)
      • 알고리즘 & 자료구조 (5)
      • App Store (6)
    • Developer Life (18)
      • FastCampus iOS (11)
      • .Reading (7)
      • .Health (0)
      • .Retrospect (0)
    • Lesson (6)
      • French (6)
    • Photograph (0)
      • 2017. 홍콩 (0)
      • 2016. 프랑스 (0)
      • 2016. 독일 - 뮌헨 (0)
      • 2016. 체코 - 프라하 (0)
      • 2016. 헝가리 - 부다페스트 (0)
      • 2015. 모로코 (0)
  • 방명록

컨버전 (1)
1. Swift : 타입 변환(Type Conversion)

********************************* Topic. 타입 변환(Type Conversion)********************************* let height = Int8(5) // Int -> Int8 타입 변환let width = 10 // 타입 추론에 의해 10은 Int 타입으로 선언되어 있다. let area = height * width // let area = Int8 * Int 와 같다.print(area) // Int8과 Int는 같은 Int 타입이지만 각 타입이 다루는 수의 범위가 달라 에러가 뜹니다. // 타입 변환 Example. 1let h = UInt8(25)let x = 10 * h// 10이 그냥 리터럴 데이터 값. 타입이 들어가기 전(선언 되..

Programming/Swift 2018. 5. 16. 11:24
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • iOS개발스쿨
  • GCD
  • fastcampus
  • commit
  • 패캠
  • tca
  • array
  • OOP
  • var
  • 깃허브
  • fallthrough
  • 개발스쿨
  • lifecycle
  • Operator
  • 패스트캠퍼스
  • 컨버전
  • 프로그래밍
  • ARC
  • Swift
  • 튜플
  • ios
  • 스위프트
  • 타입
  • inswag
  • Dictionary
  • swiftUI
  • function
  • 열거형
  • 딕셔너리
  • 리터럴
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바