Re: [Pharo-users] scaled decimal number for currency

2015-03-05 Thread Sven Van Caekenberghe
SRL >> Metrotec SRL >> 25 de Mayo 521 >> San Miguel de Tucumán >> Email: pdigonze...@softsargentina.com >> pdigonze...@gmail.com >> Cel: 5493815982714 >> >> ----- Mensaje original - >> De: "Werner Kassens" >> Para: "Any q

Re: [Pharo-users] scaled decimal number for currency

2015-03-05 Thread Pablo R. Digonzelli
SRL Metrotec SRL 25 de Mayo 521 San Miguel de Tucumán Email: pdigonze...@softsargentina.com pdigonze...@gmail.com Cel: 5493815982714 De: "stepharo" Para: "Any question about pharo is welcome" Enviados: Jueves, 5 de Marzo 2015 10:04:06 Asunto: Re: [Pharo-users]

Re: [Pharo-users] scaled decimal number for currency

2015-03-05 Thread Pablo R. Digonzelli
original - De: "Werner Kassens" Para: "Any question about pharo is welcome" Enviados: Jueves, 5 de Marzo 2015 11:04:01 Asunto: Re: [Pharo-users] scaled decimal number for currency do you perhaps mean this? b:=ScaledDecimal newFromNumber: 5.8777 scale: 2." 5.88s2"

Re: [Pharo-users] scaled decimal number for currency

2015-03-05 Thread Esteban A. Maringolo
pdigonze...@softsargentina.com > pdigonze...@gmail.com > Cel: 5493815982714 > > - Mensaje original - > De: "Werner Kassens" > Para: "Any question about pharo is welcome" > Enviados: Jueves, 5 de Marzo 2015 11:04:01 > Asunto: Re: [Pharo-users] scaled

Re: [Pharo-users] scaled decimal number for currency

2015-03-05 Thread Werner Kassens
do you perhaps mean this? b:=ScaledDecimal newFromNumber: 5.8777 scale: 2." 5.88s2" b printShowingDecimalPlaces:2." '5.88'" on a stream you can use 'printOn: aStream showingDecimalPlaces: placesDesired' werner On 03/05/2015 01:21 PM, Pablo R. Digonzelli wrote: Hi, I want to use scaled decimal

Re: [Pharo-users] scaled decimal number for currency

2015-03-05 Thread stepharo
can you give example? Le 5/3/15 13:21, Pablo R. Digonzelli a écrit : Hi, I want to use scaled decimal numbers for currency amounts. I am using Glorp too. The problem is that when Glorp generates sql sentences has a problem with #printOn: of ScaledDecimal wich produces output that include the

[Pharo-users] scaled decimal number for currency

2015-03-05 Thread Pablo R. Digonzelli
Hi, I want to use scaled decimal numbers for currency amounts. I am using Glorp too. The problem is that when Glorp generates sql sentences has a problem with #printOn: of ScaledDecimal wich produces output that include the scale value. I do not want to modify printOn: on ScaledDecimal. Any sug