How to Convert String to Double and Float types using Swift 4

preview_player
Показать описание
How to Convert String to Double and Float types using Swift 4

Learn how to convert a String to a Double value using Swift 4 in this beginner tutorial.

If you need to convert numbers in Swift, you'll need to use the initializers or NumberFormatter (NSNumberFormatter).

Learn how to make iPhone apps from scratch using Swift 4, Xcode 9, and iOS 11. I teach how to use Storyboard, Auto Layout, UI Design, app ideas, and app usability.

Рекомендации по теме
Комментарии
Автор

You helped me a lot today, thank you very much! It was a very easy to understand way of showing how the formation in Swift works!

LordWickett
Автор

Hi, great video! I have a question, what does the exclamation point in textField.text! do?

nicholasmagal
Автор

Hey Paul I have been struggling to get the following to work. I hope you can help. I am currently working on a calculator app as practice and I couldn't find anything on the internet so far.
I want the calculator to be able to calculate the following input: 2+2*3-4/5, without having to continuously having to press equal. I need a way to convert a string where all the previous input is saved into a double which automatically solves the equation. I hope you can help. Thank you!

theastronomiefreak
Автор

all I wanted was to see how to convert String to Double and I didn't​ understand it at LL

ahmadchoujaa