iOS Functions in Swift Functions in Swift Recap: Functions

kolade adekoya
PRO
kolade adekoya
Pro Student 534 Points

error running code

this keeps giving an error when i check the code, even in x code errror; "Use of undeclared type 'double'" PLEASE HELP

functions.swift
// Enter your code below
func temperatureInFahrenheit (temperature: double) -> double {
}

1 Answer

kolade adekoya
PRO
kolade adekoya
Pro Student 534 Points

i figured it out after so much frustration. the type i declared was "double instead of "Double" now i truly believe swift is case sensitive

Jason Anders
Jason Anders
Treehouse Moderator 144,813 Points

Moderator Note:
Marked the answers as "Best Answer" to close the thread and give credit to troubleshooting and solving your problem, plus sharing the explanation to the solution with others.

Nice work!! :)

:dizzy: