{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/475","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/475/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/475/events","html_url":"https://github.com/esp8266/Arduino/issues/475","id":91491445,"number":475,"title":"dtosrtf doesn't pad to desired width","user":{"login":"mdmbc","id":3011751,"avatar_url":"https://avatars.githubusercontent.com/u/3011751?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmbc","html_url":"https://github.com/mdmbc","followers_url":"https://api.github.com/users/mdmbc/followers","following_url":"https://api.github.com/users/mdmbc/following{/other_user}","gists_url":"https://api.github.com/users/mdmbc/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmbc/subscriptions","organizations_url":"https://api.github.com/users/mdmbc/orgs","repos_url":"https://api.github.com/users/mdmbc/repos","events_url":"https://api.github.com/users/mdmbc/events{/privacy}","received_events_url":"https://api.github.com/users/mdmbc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T17:01:07Z","updated_at":"2015-07-10T23:23:57Z","closed_at":null,"body":"The dtostrf implementation seems to be missing the leading space padding of the AVR variant. The padding is very helpful when doing things like updating LCDs.\r\n\r\nOn the 328P the following test code prints  '    17.0105' , and on the ESP8266 it prints '17.0105'.\r\n\r\n\r\nfloat input = 17.0105;\r\nchar val[12];\r\n\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n  dtostrf(input, 11, 4, val);\r\n  Serial.print(\"'\");\r\n  Serial.print(val);\r\n  Serial.println(\"'\");\r\n\r\n}\r\n\r\nvoid loop() {\r\n\r\n  }"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/120549575","html_url":"https://github.com/esp8266/Arduino/issues/475#issuecomment-120549575","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/475","id":120549575,"user":{"login":"Makuna","id":7972357,"avatar_url":"https://avatars.githubusercontent.com/u/7972357?v=3","gravatar_id":"","url":"https://api.github.com/users/Makuna","html_url":"https://github.com/Makuna","followers_url":"https://api.github.com/users/Makuna/followers","following_url":"https://api.github.com/users/Makuna/following{/other_user}","gists_url":"https://api.github.com/users/Makuna/gists{/gist_id}","starred_url":"https://api.github.com/users/Makuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Makuna/subscriptions","organizations_url":"https://api.github.com/users/Makuna/orgs","repos_url":"https://api.github.com/users/Makuna/repos","events_url":"https://api.github.com/users/Makuna/events{/privacy}","received_events_url":"https://api.github.com/users/Makuna/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T23:23:57Z","updated_at":"2015-07-10T23:23:57Z","body":"If I read the docs correctly, your example should have output \"____17.0105\" (four spaces) and not \"_17.0105\" (one space)."}}