<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>你好!</div><div><br></div><div>Which part of the answer was unexpected?</div><div><br></div><div>This:</div><div><br></div><div>> 1.1*1.1.</div><div><span style="font-family: Arial; font-size: 14px; line-height: 1.7;">1.2100000000000002</span></div><div><span style="font-family: Arial; font-size: 14px; line-height: 1.7;"><br></span></div><div><span style="font-family: Arial; font-size: 14px; line-height: 1.7;">is normal for floating point arithmetic.</span></div><div><span style="font-family: Arial; font-size: 14px; line-height: 1.7;"><br></span></div><div><span style="font-family: Arial; font-size: 14px; line-height: 1.7;">Ivan</span></div><div><br>--<br>festina lente<div><br></div></div><div><br>On 26 Oct 2014, at 07:24, 张栋 <<a href="mailto:zd2559@126.com">zd2559@126.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello the maillist member:<br>I am new in Erlang,Please Help me.<br><br>When I try some <span class="ordinary-span-edit">multiplication, I got the some</span><span class=""> unexpected</span><span class=""> answer</span><span class="ordinary-span-edit"> about the following expression.<br><br>Please help!<br><br>List:<br><br></span>23> [1.1*1.1,1.1*1.2,1.1*1.3,1.1*1.4,1.1*1.5].<br>[1.2100000000000002,1.32,1.4300000000000002,1.54,<br> 1.6500000000000001]<br><br>24> [1.2*1.2,1.2*1.3,1.2*1.4,1.2*1.5,1.2*1.6].<br>[1.44,1.56,1.68,1.7999999999999998,1.92]<br><br>Thank you for your time.<br><br>Eric D. Zhang In China.<br><br><span class="op_dict3_font24 op_dict3_marginRight"></span></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>