let count = weatherArray.count
let arrayPositionFloat = CGFloat(count) * sliderValueThis is in a protocol extension.
weatherArray is CollectionType.
sliderValue is CGFloat
I need to do multiplikation of Self.Index.Distance (which should be alias for Int) and CGFloat (which is sliderValue) but it does not work.
The compiler complains:
"Binary operator '*' cannot be applied to two CGFloat operands."
It does not make sense. Any help appreciated.