This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Request for a java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Request for a java program" Watch "Request for a java program" New topic
Author

Request for a java program

sumanth royal
Greenhorn

Joined: Dec 05, 2012
Posts: 4
Hai Frnds, can You please Provide me a java Program to find the multiplication of two large numbers
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3599
    
  14

What's stopping you from doing it yourself?
sumanth royal
Greenhorn

Joined: Dec 05, 2012
Posts: 4
Sir, I am Basic at Programming and Recently i started developing Programming Skills. I Had tried for it but i did not get it exactly. I would like to multiply the numbers of length more than 10. Please Help Me.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Welcome to the Ranch.

Have a look at class BigDecimal (<= click that for the documentation).

Please try something yourself first. If you have a specific question about something, please ask it here. Show us your code and explain exactly what you did, and what your question is.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

The forum is NotACodeMill, so you'll have to come up with something on your own and then come back so we can resolve any doubts you may have.


The quieter you are, the more you are able to hear.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Jesper de Jong wrote:Welcome to the Ranch.
Agree

Have a look at class BigDecimal . . .
If you search this website for “BigDecimal multiply”, you should find something useful in a few minutes.
sumanth royal
Greenhorn

Joined: Dec 05, 2012
Posts: 4
Thanks Brother
dennis deems
Ranch Hand

Joined: Mar 12, 2011
Posts: 808
Is there a reason folks are recommending BigDecimal instead of BigInteger?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11161
    
  16

Dennis Deems wrote:Is there a reason folks are recommending BigDecimal instead of BigInteger?

The OP has only specified "large numbers" and "numbers of length more than 10". There is no clear (at least to me) specification as to whether they are integers or floating-point numbers.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
sumanth royal
Greenhorn

Joined: Dec 05, 2012
Posts: 4
Ya.we have multiply two large integer numbers (say like 40).
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
For integers, you would use BigInteger, which is similar to BigDecimal.
 
Consider Paul's rocket mass heater.
 
subject: Request for a java program
 
Similar Threads
Why main is declared as static?
Jboss
How to call java method from c function??
path variable
What is the input file?