Autor Beitrag
ReddY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31

Win 2000

BeitragVerfasst: Mi 05.04.06 18:40 
Hi Leute !

Meine Frage: Wie kann ich z.b. 1000-stellige Zahlen in Delphi berechnen lassen? Ein Editfeld z.B. kann ja nur 100 Zahlen fassen, wie schauts aber mit z.b:

10300303010010101230912340923ß04923ß049ß0234992834908234
09812304982130498120394891023849102384912384910238490218
490213842394ß0304292948902384290384213840291348102ß93434 .. etc ^^


Danke im Voraus

' Marc

Moderiert von user profile iconTino: Zeilenumbrüche eingefügt.

_________________
Ordnung braucht nur der Dumme. Das Genie beherrscht das Chaos! (Albert Einstein)
Müscha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118



BeitragVerfasst: Mi 05.04.06 19:05 
Ich hab keine Ahnung, aber ich weiß dass

"ß" keine Zahl ist was paar mal in deiner ziffernfolge vorkommt!!!!!

:wink:
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 05.04.06 19:10 
Ich weiß nicht, ob es einen Datentypen gibt, der solche großen Zahlen überhaupt 'speichern' kann.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
zemy
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 207

Win XP Prof.
D7
BeitragVerfasst: Mi 05.04.06 19:29 
Es gibt Klassen, die sowas handhaben. Empfehlen kann ich da keine, vieleicht einer hier ausm Forum? Die rechnen dann wie du aufm Papier (Überträge usw.) Aber einen normalen Datentyp für 100-stellige Zahlen? Ne, so was gibts für normale PCs nicht (2^64 ist da wohl die obere Schranke...) oder du nimmst n String^^

MfG

_________________
LifeIsToShortToThinkAboutTheShortness
Spaceguide
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 552


(D3/D7/D8) Prof.
BeitragVerfasst: Mi 05.04.06 19:40 
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 05.04.06 20:58 
Man suche einfach mal nach BigInt oder BigNum ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.