Q:

How to make a simple division of Double by Int in Swift?

Looking at various posts on this topic but still no luck. Is there a simple way to make division/conversion when dividing Double (or Float) with Int? Here is a simple example in playground returning and error "Double is not convertible to UInt8". 
    var score:Double = 3.00
var length:Int = 2  // it is taken from some an array lenght and does not return decimal or float

var result:Double = (score / length )

A:

Cast the int to double with var result:Double=(score/Double(length))
What this will do is before computing the division it will create a new Double variable with int inside parentheses hence constructor like syntax.

