Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Functions in Swift Functions in Swift Recap: Functions

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

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

There you go

Jason Anders
Jason Anders
Treehouse Moderator 145,858 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: