{"action":"closed","issue":{"url":"https://api.github.com/repos/drkameleon/iswift/issues/144","labels_url":"https://api.github.com/repos/drkameleon/iswift/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/drkameleon/iswift/issues/144/comments","events_url":"https://api.github.com/repos/drkameleon/iswift/issues/144/events","html_url":"https://github.com/drkameleon/iswift/issues/144","id":121036024,"number":144,"title":"stringByAppendingFormat:","user":{"login":"charlieMonroe","id":64899,"avatar_url":"https://avatars.githubusercontent.com/u/64899?v=3","gravatar_id":"","url":"https://api.github.com/users/charlieMonroe","html_url":"https://github.com/charlieMonroe","followers_url":"https://api.github.com/users/charlieMonroe/followers","following_url":"https://api.github.com/users/charlieMonroe/following{/other_user}","gists_url":"https://api.github.com/users/charlieMonroe/gists{/gist_id}","starred_url":"https://api.github.com/users/charlieMonroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlieMonroe/subscriptions","organizations_url":"https://api.github.com/users/charlieMonroe/orgs","repos_url":"https://api.github.com/users/charlieMonroe/repos","events_url":"https://api.github.com/users/charlieMonroe/events{/privacy}","received_events_url":"https://api.github.com/users/charlieMonroe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/drkameleon/iswift/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/drkameleon/iswift/labels/critical","name":"critical","color":"000000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-08T15:51:14Z","updated_at":"2015-12-17T10:44:06Z","closed_at":"2015-12-17T10:44:05Z","body":"```\r\ntitle = [title stringByAppendingFormat:@\" - %0.2f\", [[self amount] doubleValue]];\r\n```\r\n\r\nResult:\r\n\r\n```\r\ntitle = title + \" - %0.2f\"\r\n```\r\n\r\nNotice that `%0.2f` is left there and the argument is discarded. This is likely related to the other issues with formatting. Here is an idea how to make this safer for now, since this is incredibly dangerous behavior that can mess up your code if you do not double check every converted line:\r\n\r\n- if you count more arguments of a formatting function than declared formatting options within the string, just leave the string and use `String(format: \"formatting string\", ...)`. So in this case, since `%0.2f` isn't supported by either iSwift, or natively by Swift itself, the result would look like: `title = title + String(format: \" - %0.2f\", self.amount.doubleValue)`."}}