<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I think the documentation is wrong here!<div>The return value should probably (to be safe) be documented as iolist() ?</div><div><br></div><div>/Tony</div><div><br></div><div><div><div>On 13 jan 2012, at 23:15, Bob Cowdery wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi<br><br>In erl 5.8.2 I had this:<br>S = io_lib:format("~10.6.0f", [Freq]),<br>where Freq was a float, say 7.0 and this gave me<br>[["00","7.000000"]] so I concat the strings to get what I want which is<br>"007.000000"<br><br>In 5.9 the code breaks because I get [["00",55,46,48,48,48,48,48,48]].<br><br>Neither look right to me but I really don't understand the 5.9 result.<br><br>If I do io:format("~10.6.0f", [7.0]). it gives me what I would expect<br>"007.000000".<br><br>Can someone explain these behaviours please.<br><br>Thanks<br>Bob<br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">"Installing applications can lead to corruption over time. </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>