<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 22-Nov-07, at 10:03 AM, Sebastian Sastre wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <div><font face="Trebuchet MS" size="2"><span class="328285917-22112007">Hi there,</span></font></div> <div><font face="Trebuchet MS" size="2"><span class="328285917-22112007"></span></font>&nbsp;</div> <div><font face="Trebuchet MS" size="2"><span class="328285917-22112007">&nbsp;&nbsp;&nbsp; I'm geting this unexpected result from a Squeak 3.9 final 7067 image.</span></font></div> <div><font face="Trebuchet MS" size="2"><span class="328285917-22112007"></span></font>&nbsp;</div> <div><font face="Trebuchet MS" size="2"><span class="328285917-22112007">&nbsp;&nbsp;&nbsp;&nbsp;I need to display money values with two&nbsp;digits. Has anybody a sugestion to correctly achieve this?</span></font></div></div></blockquote><br></div><div>First and most important - don't maintain money as floating point numbers.</div><div>Second - never do simple&nbsp;compares&nbsp;of floating point numbers.</div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Palatino; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div><br class="khtml-block-placeholder"></div><div>tim</div><div>--</div><div>tim Rowledge; tim@rowledge.org; <a href="http://www.rowledge.org/tim">http://www.rowledge.org/tim</a></div><div>Strange OpCodes: FSRA: Forms Skip and Run-Away</div></div><br class="Apple-interchange-newline"></span> </div><br></body></html>