You are not logged in. Please login at www.codechef.com to post your questions!

×

Small Factorials, Java and big numbers

In the tutorial for the small factorials exercise: http://blog.codechef.com/2009/07/02/tutorial-for-small-factorials/ it states that there is built in support for dealing with large numbers in Java. My program does not work for testing 100. I read somewhere that there are classes that I can use to deal with such a large number of decimal places but I would really appreciate it if someone could point me in the right direction. I understand the tutorial but I would prefer to learn what I can use in Java instead of redesigning my program.

Thanks for any help!

asked 07 Jan '14, 00:40

robertgifford8's gravatar image

0★robertgifford8
1112
accept rate: 0%


You can use BigInteger, if you need, you can check my Java solution.

link

answered 07 Jan '14, 13:12

betlista's gravatar image

3★betlista ♦♦
16.9k49115225
accept rate: 11%

Thanks so much

(07 Jan '14, 22:59) robertgifford80★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,243
×186
×44
×37
×33
×12
×9

question asked: 07 Jan '14, 00:40

question was seen: 1,227 times

last updated: 08 Jan '14, 10:24