Jump to content




serching for good coders to make a calculator.


  • You cannot reply to this topic
11 replies to this topic

#1 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 14 May 2013 - 04:33 PM

No, I don't want want to make a little calculator that only can add etc.

I search peoplebwho can help me to make a calculator that can handle this number:
Quindezi-lli-quingenti-lli-ni-lli-mi-llion
Yes, this is a number :P/>/>
You can calculate it so:
15.500.000.001 × 6

The number has 93.000.000.006 zeroes at the end!

So, if there is anyone who can help, pls reply to this thread :)/>/>

#2 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 14 May 2013 - 04:38 PM

I don't think Lua can even support a number with that many zeroes.

#3 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 14 May 2013 - 04:42 PM

View PostKingdaro, on 14 May 2013 - 04:38 PM, said:

I don't think Lua can even support a number with that many zeroes.

Damn lua limits -.-

#4 Jarle212

  • Members
  • 198 posts
  • LocationNorway

Posted 14 May 2013 - 04:44 PM

View PostFreack100, on 14 May 2013 - 04:33 PM, said:

No, I don't want want to make a little calculator that only can add etc.

I search peoplebwho can help me to make a calculator that can handle this number:
Quindezi-lli-quingenti-lli-ni-lli-mi-llion
Yes, this is a number :P/>
You can calculate it so:
15.500.000.001 × 6

The number has 93.000.000.006 zeros at the end!

So, if there is anyone who can help, pls reply to this thread :)/>

Is the number equal to 93000000006 or is it equal to 10^(93000000006) ?

Edit: the largest integer that can be stored in one address is 9.223372036854775807E+18(none double), the largest double number is 2251799813685247E+2047(not 100% shure if possible) on a 64 bit computer

#5 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 14 May 2013 - 04:53 PM

View PostJarle212, on 14 May 2013 - 04:44 PM, said:

View PostFreack100, on 14 May 2013 - 04:33 PM, said:

No, I don't want want to make a little calculator that only can add etc.

I search peoplebwho can help me to make a calculator that can handle this number:
Quindezi-lli-quingenti-lli-ni-lli-mi-llion
Yes, this is a number :P/>/>/>
You can calculate it so:
15.500.000.001 × 6

The number has 93.000.000.006 zeros at the end!

So, if there is anyone who can help, pls reply to this thread :)/>/>/>

Is the number equal to 93000000006 or is it equal to 10^(93000000006) ?

You take a one and put 93.000.000.006 zeroes at the end

#6 Jarle212

  • Members
  • 198 posts
  • LocationNorway

Posted 14 May 2013 - 05:01 PM

View PostFreack100, on 14 May 2013 - 04:53 PM, said:

View PostJarle212, on 14 May 2013 - 04:44 PM, said:

-snip-
You take a one and put 93.000.000.006 at the end

You whoul need several numbers to handle that. Could be handled like floating points are handled

#7 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 14 May 2013 - 05:10 PM

*COUGH*

#8 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 14 May 2013 - 05:14 PM

View PostCranium, on 14 May 2013 - 05:10 PM, said:


bless you!

#9 Pharap

  • Members
  • 816 posts
  • LocationEngland

Posted 15 May 2013 - 09:10 PM

View PostKingdaro, on 14 May 2013 - 04:38 PM, said:

I don't think Lua can even support a number with that many zeroes.

Yes it can, you just have to do the horrible trick that 32bit systems do to emulate 64 bit numbers.
An array of numbers using another bit of memory (no pun intended) to act as the carry flag.

I made a binary adder with Redpower2 circuits once, it would be like that :D

View PostCranium, on 14 May 2013 - 05:10 PM, said:


Goddammit, you beat me to it.
The only program that comes to mind when people say 'lua calculator' :D

#10 Creeper4869

  • New Members
  • 1 posts

Posted 16 May 2013 - 01:58 AM

Dont worry...

#11 Frederikam

  • Members
  • 112 posts
  • LocationDenmark

Posted 16 May 2013 - 02:39 AM

With multiple numbers inside an arrays I'm sure this would work. It's possible with Lua.

#12 Pharap

  • Members
  • 816 posts
  • LocationEngland

Posted 16 May 2013 - 06:42 PM

View PostFrederikam, on 16 May 2013 - 02:39 AM, said:

With multiple numbers inside an arrays I'm sure this would work. It's possible with Lua.

It's possible with any language that supports the ability to store a group of numbers in memory.
In theory you could have a language that only had bytes and arrays of bytes and you could still count much further than the maximum value of a 64 bit number (commonly the largest supported value in any modern programming language).

The big issue is just that the process of performing any form of equation with the numbers would be more long winded and thus much slower.
It would also be more complicated in any language that doesn't provide a way to detect if an arithmetic overflow has occurred (something that you would have to know).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users