The application basically calculates acceleration by inputting Initial and final velocity and time and then use a formula to calculate acceleration. However, since the value
Swift5 float or int string to int:
extension String { func convertStringToInt() -> Int { return Int(Double(self) ?? 0.0) } } let doubleStr = "4.2" // print 4 print(doubleStr.convertStringToInt()) let intStr = "4" // print 4 print(intStr.convertStringToInt())