Hello Jose Blanco,
I do have a NetRexx Picture Editing routine, which will allow you PICTURE Editing as in COBOL, written by Walter Pachl long time ago. When you are intereted, I could send you the Java Library containing his routine. May I also advise you to sumscribe ibm-netrexx, which is the Forum for those type of questions. With copy to ibm-netrexx I do ask members of this list wether they do have a more appropriate answer to Jose Blanco ? Thomas Schneider. ========================================================== Am 03.12.2010 11:40, schrieb joseblanco6663: > Hello, I'm from Colombia > > I'm currently using BigDecimal type to work Money data types, and the type of money used in my country is the PESO. > The question I have is like using the BigDecimal I can give an output format as follows: > > 25.000 > 5,000, > 32,000, > I do see them out as the format of money from my country .. but this is how default the program throws me: "23000.00" .. thing that I do not want .. I want to leave so: 23,000 > I read something about establishing a scale. . But I am very clear. > > in advance thank you very much > > > > > -- Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com www.thsitc.com _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
Hello Wade,
It definitley has been my failure. Mike Cowlishaw, who is the author of NetRexx, has also an implementation of a package called BigDecimal which implements numbers at any precision. I simply thought the question has been relating to Mike's implementation, and did *not* think at Java's own BigDecimal at all, as I'm always using NetRexx only. Sorry for any inconvenience my answer might have caused (in both groups). It was for sure *not* intended! Sincerely, Thomas Schneider. ========================================================== Am 05.12.2010 17:23, schrieb Wade Chandler: > Strange email Tom. I've seen similar list highjacking type emails on the Apache > River boards for Gigaspaces. Seems shady to me. > > 1) This list isn't about NetRexx and the question was about Java BigDecimal not > some arbitrary picture library for NetRexx or Rexx. > 2) To the original poster, this list isn't a general Java help forum, and those > are available in many places, but the ones Oracle moved from java.sun.com are a > good source. This is specifically about the NetBeans IDE. > 3) Use BigDecimal.setScale(0). Remember BigDecimal is immutable, so you need to > get the return from setScale and not think you are operating on the instance > variable you are calling the method. > > Wade > > ================== > Wade Chandler > Software Engineer and Developer > NetBeans Dream Team Member and Contributor > > > http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam > http://www.netbeans.org > > > > ----- Original Message ---- >> From: Thomas Schneider<[hidden email]> >> To: [hidden email]; "ibm-netrexx>> IBM Netrexx" >> <[hidden email]> >> Sent: Sat, December 4, 2010 12:41:11 PM >> Subject: [nbdev] Re: Some questions about java BigDecimal >> >> Hello Jose Blanco, >> >> I do have a NetRexx Picture Editing routine, which will allow you >> PICTURE Editing as in COBOL, written by Walter Pachl long time ago. When >> you are intereted, I could send you the Java Library containing his routine. >> >> May I also advise you to sumscribe ibm-netrexx, which is the Forum for >> those type of questions. >> >> With copy to ibm-netrexx I do ask members of this list wether they do >> have a more appropriate answer to Jose Blanco ? >> Thomas Schneider. >> ========================================================== >> Am 03.12.2010 11:40, schrieb joseblanco6663: >>> Hello, I'm from Colombia >>> >>> I'm currently using BigDecimal type to work Money data types, and the type >> of money used in my country is the PESO. >>> The question I have is like using the BigDecimal I can give an output format >> as follows: >>> 25.000 >>> 5,000, >>> 32,000, >>> I do see them out as the format of money from my country .. but this is how >> default the program throws me: "23000.00" .. thing that I do not want .. I want >> to leave so: 23,000 >>> I read something about establishing a scale. . But I am very clear. >>> >>> in advance thank you very much >>> >>> >>> >>> >>> >> >> -- >> Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com >> www.thsitc.com >> -- Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com www.thsitc.com _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
Thomas,
although Mike's BigDecimal is definitely related to Java's current implementation, please do observe simple rules about mailing lists. Try to be on-topic and do not cross-post. We receive numerous complaints and we cannot go on like this.
best regards, René Jansen. On Mon, Dec 6, 2010 at 11:19 AM, Thomas Schneider <[hidden email]> wrote: Hello Wade, _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Thomas.Schneider.Wien
Thomas,
This is not making any good to NetRexx PR wise...
It seems also you didn't get your facts right. As far as I know java's big decimal comes from some JSR which was both originally proposed by MFC and coded in NetRexx using the Rexx class. I'm sure MFC himself will be able to give the exact details.
It's a pity. You could have advised to use Rexx class from NetRexxR.jar instead of BigDecimal or something along the lines (of course using third party libraries in Netbeans is on-topic at that list).
That could even have atracted attention from a couple java devs to NetRexx! As things are, they just got generally anoyed :-(
2010/12/6 Thomas Schneider <[hidden email]> Hello Wade, -- Saludos / Regards, David Requena _______________________________________________ Ibm-netrexx mailing list [hidden email] |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi all, the worst thing of all is that the topic of the sender is all about formatting, not the BigDecimal class and it's history. NetRexx does't have any functionality to solve this (in a proper way, that is) with it's own Rexx class, so the best way to do this is using the the DecimalFormat class as such: import java.math.BigDecimal import java.util.Locale import java.text.NumberFormat l=Locale('es','CO') f=NumberFormat.getCurrencyInstance(l) d=BigDecimal("25000") s=f.format(d) say d" -> "s d2=f.parse(s) say s" -> "d That should help. If you need custom formats, use the java.text.DecimalFormat, it uses the "Excel"-Notation for formatting, eg "#,##0.00". I hope that was the last unqualified and completely disturbing cross post by Thomas now. David Requena schrieb am 06.12.2010 11:37: > Thomas, > > This is not making any good to NetRexx PR wise... > > It seems also you didn't get your facts right. As far as I know java's > big decimal comes from some JSR which was both originally proposed by > MFC and coded in NetRexx using the Rexx class. I'm sure MFC himself will > be able to give the exact details. > > It's a pity. You could have advised to use Rexx class from NetRexxR.jar > instead of BigDecimal or something along the lines (of course using > third party libraries in Netbeans is on-topic at that list). > > That could even have atracted attention from a couple java devs to > NetRexx! As things are, they just got generally anoyed :-( > > 2010/12/6 Thomas Schneider <[hidden email] <mailto:[hidden email]>> > > Hello Wade, > > It definitley has been my failure. > > Mike Cowlishaw, who is the author of NetRexx, has also an implementation > of a package called BigDecimal which implements numbers at any > precision. > > I simply thought the question has been relating to Mike's > implementation, and did *not* think at Java's own BigDecimal at all, > as I'm always using NetRexx only. > > Sorry for any inconvenience my answer might have caused (in both > groups). > > It was for sure *not* intended! > > Sincerely, > Thomas Schneider. > ========================================================== > > Am 05.12.2010 17:23, schrieb Wade Chandler: > > Strange email Tom. I've seen similar list highjacking type > emails on the Apache > River boards for Gigaspaces. Seems shady to me. > > 1) This list isn't about NetRexx and the question was about Java > BigDecimal not > some arbitrary picture library for NetRexx or Rexx. > 2) To the original poster, this list isn't a general Java help > forum, and those > are available in many places, but the ones Oracle moved from > java.sun.com <http://java.sun.com/> are a > good source. This is specifically about the NetBeans IDE. > 3) Use BigDecimal.setScale(0). Remember BigDecimal is immutable, > so you need to > get the return from setScale and not think you are operating on > the instance > variable you are calling the method. > > Wade > > ================== > Wade Chandler > Software Engineer and Developer > NetBeans Dream Team Member and Contributor > > > http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam > http://www.netbeans.org <http://www.netbeans.org/> > > > > > ----- Original Message ---- > > From: Thomas Schneider<[hidden email] <mailto:[hidden email]>> > To: [hidden email] <mailto:[hidden email]>; > "ibm-netrexx>> IBM Netrexx" > <[hidden email] > <mailto:[hidden email]>> > Sent: Sat, December 4, 2010 12:41:11 PM > Subject: [nbdev] Re: Some questions about java BigDecimal > > Hello Jose Blanco, > > I do have a NetRexx Picture Editing routine, which will > allow you > PICTURE Editing as in COBOL, written by Walter Pachl long > time ago. When > you are intereted, I could send you the Java Library > containing his routine. > > May I also advise you to sumscribe ibm-netrexx, which is > the Forum for > those type of questions. > > With copy to ibm-netrexx I do ask members of this list > wether they do > have a more appropriate answer to Jose Blanco ? > Thomas Schneider. > ========================================================== > Am 03.12.2010 11:40, schrieb joseblanco6663: > > Hello, I'm from Colombia > > I'm currently using BigDecimal type to work Money data > types, and the type > > of money used in my country is the PESO. > > The question I have is like using the BigDecimal I can > give an output format > > as follows: > > 25.000 > 5,000, > 32,000, > I do see them out as the format of money from my > country .. but this is how > > default the program throws me: "23000.00" .. thing that I > do not want .. I want > to leave so: 23,000 > > I read something about establishing a scale. . But I am > very clear. > > in advance thank you very much > > > > > > > -- > Thomas Schneider Projects PP, ReyC, and LOGOS on > www.KENAI.com <http://www.kenai.com/> > www.thsitc.com <http://www.thsitc.com/> > > > > -- > Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com > <http://www.kenai.com/> www.thsitc.com <http://www.thsitc.com/> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] <mailto:[hidden email]> > > > > > -- > Saludos / Regards, > David Requena > > > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > - -- cu, Patric -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: GnuPT 2.5.2 iEYEARECAAYFAkz88sIACgkQfGgGu8y7ypCpPwCg3nplnK13MvOvjxMkuQp9Qj2o uCsAoM8N2tmHBzc+sWWfc7P4NRN8BwfR =MA74 -----END PGP SIGNATURE----- _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by rvjansen
I'm sorry ... Will be more careful in the future. Thomas. ========================================================= Am 06.12.2010 11:35, schrieb René Jansen: Thomas, _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
Free forum by Nabble | Edit this page |