#!/usr/bin/env swift; import Foundation import Utils func main() -> Void { var i:Int32 = 0 var d:Double = 0.0 do { try i = Utils.stoi(CommandLine.arguments[1]) try d = Utils.stod(CommandLine.arguments[2]) print(Utils.format("i + d = {0:f}", Double(i) + d)) } catch { print("Can't convert command line argument!") } exit(EXIT_SUCCESS) } main()