Users Pricing

forum

Home Forums How to Typecast Obligation is Apple Swift? – MindStick

How to Typecast Obligation is Apple Swift?

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

1 Answers

Markdown for AI

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

Open .md