Users Pricing

forum

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

How to Typecast Obligation is Apple Swift?

Anonymous User 1905 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 

I am a content writter !


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md