{"action":"opened","issue":{"url":"https://api.github.com/repos/kfl/mosml/issues/36","labels_url":"https://api.github.com/repos/kfl/mosml/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/kfl/mosml/issues/36/comments","events_url":"https://api.github.com/repos/kfl/mosml/issues/36/events","html_url":"https://github.com/kfl/mosml/issues/36","id":102518434,"number":36,"title":"Time.fmt does not raise the Size exception.","user":{"login":"JohnReppy","id":5407038,"avatar_url":"https://avatars.githubusercontent.com/u/5407038?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnReppy","html_url":"https://github.com/JohnReppy","followers_url":"https://api.github.com/users/JohnReppy/followers","following_url":"https://api.github.com/users/JohnReppy/following{/other_user}","gists_url":"https://api.github.com/users/JohnReppy/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnReppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnReppy/subscriptions","organizations_url":"https://api.github.com/users/JohnReppy/orgs","repos_url":"https://api.github.com/users/JohnReppy/repos","events_url":"https://api.github.com/users/JohnReppy/events{/privacy}","received_events_url":"https://api.github.com/users/JohnReppy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-22T08:57:31Z","updated_at":"2015-08-22T08:57:31Z","closed_at":null,"body":"The code\r\n```sml\r\nload \"Time\";\r\nTime.fmt ~1 (Time.now());\r\n```\r\nshould raise the `Size` expression, but does not in Moscow ML.  The simple fix is to change lines 37-38 of Time.sml to\r\n```sml\r\nfun fmt p r = Real.fmt (StringCvt.FIX (SOME p)) (r/1000000.0);\r\n```\r\nsince `Real.fmt` raises `Size` on invalid precision specifications."}}