Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 네트워크
- 후기
- SwiftUI
- composable architecture
- swift concurrency
- TCA
- Protocol
- 위젯킷
- 대외활동
- 문법
- cs
- 멋사
- 리액트
- 스유
- uikit
- 알고리즘
- c++
- 컴퓨터그래픽스
- 웹
- 백준
- spritekit
- 1일1알골
- Swift
- 영남대
- 운영체제
- dispatchqueue
- widgetkit
- 스위프트
- 멋쟁이사자처럼
- widget
Archives
- Today
- Total
맛동산이
Swift) 소수점 다루기 본문
- ceil(값) = 소수점 올림
- floor(값) = 소수점 내림
- trunc(값) = 소수점 버림
- round(값) = 소수점 반올림
ceil(Int(someValue)!)
round(Int(someValue)!)
floor(Int(someValue)!)
trunc(Int(someValue)!)
반응형
'앱 > Swift' 카테고리의 다른 글
Swift) Appstorage와 userDefault (0) | 2023.08.28 |
---|---|
Swift) Collection과 iteratorProtocol, Sequence, AsyncSequence을 왜 채택하는가?(feat. AsyncStream) (0) | 2023.08.28 |
Swift) Task, TaskGroup, .task와 dispatchQueue (0) | 2023.07.04 |
Swift) Async, Await 사용하는 법 (0) | 2023.07.04 |
Swift) 프로토콜 Sendable이란 (0) | 2023.07.04 |