You should convert one type to the other one so both variable should be the same types:
var result: Double = Double(textfield) * VAT
Related Posts:
- Type of expression is ambiguous without more context Swift
- What does “Fatal error: Unexpectedly found nil while unwrapping an Optional value” mean?
- Strange error nw_protocol_get_quic_image_block_invoke dlopen libquic failed
- How does String substring work in Swift
- what’s difference between array and tuple
- Declaration is only valid at file scope (extension)
- How to fix Error: this class is not key value coding-compliant for the key tableView.’
- @selector() in Swift?
- Is Swift Pass By Value or Pass By Reference
- Swift – How to convert String to Double
- What are the supported Swift String format specifiers?
- Xcode: Download mp3 file
- How to create a global variable?
- “Unrecognized selector sent to instance” in swift
- Instance member cannot be used on type
- libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
- libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
- Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code
- What’s the correct way to implement default properties when doing default implementation of protocols in Swift?
- How do you create a Swift Date object?
- Swift 4 Attempt to present ViewController whose view is not in the window hierarchy
- UITableView example for Swift
- Converting String to Int with Swift
- Where is the variable “code” in SKError defined?
- Command CompileSwift failed with a nonzero exit code in Xcode 10
- Convert Int to String in Swift
- Always get build error : No such module ‘Alamofire’
- Swift protocols: method does not override any method from its superclass
- what does Error “Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)” mean?
- type any? has no subscript members
- Date Format in Swift
- What the meaning of question mark ‘?’ in swift?
- Swift 2: !, ? -” Value of optional type “…” not unwrapped”
- Two-dimensional array in Swift
- Could not insert new outlet connection: Could not find any information for the class named
- Error in Swift class: Property not initialized at super.init call
- Swift Error: Variable used within its own initial value
- Prepare for Segue in Swift
- Swift: print() vs println() vs NSLog()
- How to play a sound using Swift?