truncatingRemainder(dividingBy:)는 실수끼리 나눈 후 남는 나머지를 구할 때 사용
let a = 10let b = 3// 더하기 (+)let sum = a + b // 10 + 3 = 13// 빼기 (-)let difference = a - b // 10 - 3 = 7// 곱하기 (*)let product = a * b // 10 * 3 = 30// 나누기 (/)let quotient = a / b // 10 / 3 = 3 (정수 나눗셈)// 나머지 (%)let remainder = a % b // 10 % 3 = 1// 실수 계산 예제let c = 10.0let d = 3.0let floatSum = c + d // 13.0let floatQuotient = c / d // 3.3333...let floatProduct = c * d // 30.0let floatRemainder = c.truncatingRemainder(dividingBy: d) // 1.0