<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY 
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>Thanks Tim,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;&nbsp;&nbsp; </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;&nbsp;&nbsp; may be I should clarify that it's 
only for presentation. The mone value is stored as anMeasure of it's monetary 
unit in the Aconcagua framework.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;&nbsp;&nbsp; But I'm curious about your answer. 
Let's supose the user enters in&nbsp;some input widget with keyboard the 
'5.30'&nbsp;value. That will end as a Float at some point. Do you suggest I 
convert that to a ScaledDecimal? (to store/comare, etc)?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;&nbsp;&nbsp; I'm evaluating 
this:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;(5.3 asScaledDecimal: 2) <BR></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;&nbsp;&nbsp; and also obtainig:&nbsp; ' 
5.29s2'</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;&nbsp;&nbsp; so I'm still lost about 
it,</DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;&nbsp;&nbsp; thanks,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN 
class=984495318-22112007>&nbsp;</SPAN></FONT></DIV>
<DIV align=left><SPAN class=250542422-20122006>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><?xml:namespace prefix 
= st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName 
ProductID="Sebastian Sastre&#13;" w:st="on"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Sebastian 
Sastre<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" 
/><o:p></o:p></SPAN></st1:PersonName></P></DIV></SPAN><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=es dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>De:</B> 
  squeak-dev-bounces@lists.squeakfoundation.org 
  [mailto:squeak-dev-bounces@lists.squeakfoundation.org] <B>En nombre de </B>tim 
  Rowledge<BR><B>Enviado el:</B> Jueves, 22 de Noviembre de 2007 
  16:18<BR><B>Para:</B> The general-purpose Squeak developers 
  list<BR><B>Asunto:</B> Re: 5.3 printShowingDecimalPlaces: 2 displays '5.29' 
  instead of'5.30'<BR></FONT><BR></DIV>
  <DIV></DIV><FONT face="Trebuchet MS" color=#0000ff size=2></FONT><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="WORD-SPACING: 0px; FONT: 14px Palatino; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2">
  <DIV 
  style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space">
  <DIV><FONT face="Trebuchet MS" color=#0000ff size=2></FONT><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></BLOCKQUOTE></BODY></HTML>