Understanding The Modulus Operator %

(This explanation is only for positive numbers since it depends on the language otherwise) Definition The Modulus is the remainder of the euclidean division of one number by another. % is called the modulo operation. For instance, 9 divided by 4 equals 2 but it remains 1. Here, 9 / 4 = 2 and 9 … Read more

What does “% is unavailable: Use truncatingRemainder instead” mean?

CMTimeGetSeconds() returns a floating point number (Float64 aka Double). In Swift 2 you could compute the remainder of a floating point division as let rem = 2.5 % 1.1 print(rem) // 0.3 In Swift 3 this is done with let rem = 2.5.truncatingRemainder(dividingBy: 1.1) print(rem) // 0.3 Applied to your code: let totalSeconds = CMTimeGetSeconds(self) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)