-
[Swift] Comparison Operatorswift 2024. 3. 3. 23:00
Comparison Operator 비교 연산자
1. 특징
가. 모두 이항 연산자이다.
나. Boolean 값을 산출한다. (true or false)
2. 종류
가. 값의 동일성을 비교하는 비교 연산자
1)equal to operator: 같다 ( == )
2)Not equal to Operator: 다르다 ( != )
나. 값의 크기나 순서를 비교하는 비교 연산자
1)Greater than Operator 크다 ( > )
2)Greater than or equal to Operator 크거나 같다 ( >=)
3)Less than Operator 작다 ( < )
4)Less than or equal to Operator 작거나 같다 ( <= )
'swift' 카테고리의 다른 글
[Swift] Ternary Conditional Operator (0) 2024.03.03 [Swift] Logical Operators (0) 2024.03.03 [Swift] Arithmetic Operator, Overflow (0) 2024.03.03 [Swift 문법] Operator (0) 2024.03.03 [Swift 문법] Operator Precedence, Associativity (0) 2024.03.03