forum

home / developersection / forums / how to typecast obligation is apple swift?

How to Typecast Obligation is Apple Swift?

Anonymous User 1807 17-Oct-2014
Am I missing something or typecast is obligatory while adding numbers having different types:

var i:Int=5
var d:Double=6.0

var q:Double= i + d 
var w:Double= Double(i) + d 

Updated on 17-Oct-2014

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By