• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Looking for Money! (class)

 
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thought that I read that there is a "Money()" class in Java a while back.
Now of course, when I want to use it, I can't find anything on it. I've looked in my books, the Java API and nothing.
Am I just dreaming this up or does it exist?
Thanks in advance!
Matt
 
Trailboss
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've never heard of it.
What was it supposed to do?
 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, it may have been a method on an 'int' or something like that.
i.e.
float pay = 100000.00 ;
money( pay ) ; would look like $100,000.00
I thought it was some type of formating method or tool. Guess not.
[This message has been edited by Matt Midcap (edited April 03, 1999).]
 
paul wheaton
Trailboss
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look in those libararies I sent you a few months ago. I think you will find it there.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Matt,
What you may be referring to is the DecimalFormat and DecimalFormatSymbols classes in the java.text package. DecimalFormat does know how to generate Currency symbols based upon your provided format specification and any locale that you may choose to work with. Look at the supporting text on each.
I have not heard of an explicit Money class either.
 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ahhh yes! That's exactly what I'm looking for.
Thanks!
Matt
 
reply
    Bookmark Topic Watch Topic
  • New Topic