How do you find the quotient in Swift?

To get the quotient and remainder of a division, you can use the quotientAndRemainder(dividingBy:) function . If you want to get the floating point result of a division, use the / operator on two floating point numbers. I want the op like – 0.500000 , the above code op is (quotient: 0, remainder: 3).

Sizin İçin Seçtik  What is the ternary operator with example?

Leave a Reply

Your email address will not be published. Required fields are marked *