BigInteger in pascal
Moderator: Board moderators
-
- New poster
- Posts: 32
- Joined: Fri Oct 01, 2004 10:53 pm
BigInteger in pascal
is there such thing, or i have to write such thing myself?
To write, or not to write.
Greetings!
For a 32-bit compiler like FreePascal, the big integer types and ranges are:
Check Free Pascal - Ordinal Types
If you need anything larger than that, you'll have to code it yourself![8)](./images/smilies/icon_cool.gif)
IF you know an easy way, code it.
Keep posting!
For a 32-bit compiler like FreePascal, the big integer types and ranges are:
Code: Select all
Predefined integer types
Type Range Size in bytes
Byte 0 .. 255 1
Shortint -128 .. 127 1
Smallint -32768 .. 32767 2
Word 0 .. 65535 2
Integer either smallint, longint or int64 size 2,4 or 8
Cardinal either word, longword or qword size 2,4 or 8
Longint -2147483648 .. 2147483647 4
Longword 0..4294967295 4
Int64 -9223372036854775808 .. 9223372036854775807 8
QWord 0 .. 18446744073709551615 8
If you need anything larger than that, you'll have to code it yourself
![8)](./images/smilies/icon_cool.gif)
IF you know an easy way, code it.
Keep posting!
_.