# Реферат: Набор процедур манипулирования с целыми числами произвольной длины

à®¢¥àª à ¡®âëª®­áâàãªâ®à®¢:

¥§¨­¨æ¨ «¨§ æ¨¨:

unlim a;

a=0

unlim b=«123»

b=123

unlim c="-123"

c=-123

unlim d="+123"

d=123

unlim e="+"

Unlim classerror: Sign without value. Value=0

e=0

unlim f="-"

Unlim classerror: Sign without value. Value=0

f=0

unlim g=«aaa»

Unlim classerror: Not digit symbol in string. String ignored. Value=0

g=0

unlim h=«4a123»

Unlim classerror: Not digit symbol in string. String ignored. Value=0

h=0

à®¢¥àª ¢ë¢®¤ , à¨ä¬¥â¨ª¨ ¨áà ¢­¥­¨ï:

‚¢¥¤¥­®:

a=123

b=45

¥§ã«ìâ â:

a=123

b=45

-a=-123

+a=123

a>b   a>=b  a!=b

a+b=168

a-b=78

a*b=5535

--------------------------------------------------

‚¢¥¤¥­®:

a=+0000000000000000123

b=0000000000000000000000000000000045

¥§ã«ìâ â:

a=123

b=45

-a=-123

+a=123

a>b   a>=b  a!=b

a+b=168

a-b=78

a*b=5535

--------------------------------------------------

‚¢¥¤¥­®:

a=-123

b=-45

¥§ã«ìâ â:

a=-123

b=-45

-a=123

+a=-123

a<b   a<=b  a!=b

a+b=-168

a-b=-78

a*b=5535

--------------------------------------------------

‚¢¥¤¥­®:

a=123

b=-45

¥§ã«ìâ â:

a=123

b=-45

-a=-123

+a=123

a>b   a>=b  a!=b

a+b=78

a-b=168

a*b=-5535

--------------------------------------------------

‚¢¥¤¥­®:

a=-123

b=45

¥§ã«ìâ â:

a=-123

b=45

-a=123

+a=-123

a<b   a<=b  a!=b

a+b=-78

a-b=-168

a*b=-5535

--------------------------------------------------

‚¢¥¤¥­®:

a=1000000000000000000000000000000000000000000000

b=999999999999999999999999999999999999999999999

¥§ã«ìâ â:

a=1000000000000000000000000000000000000000000000

b=999999999999999999999999999999999999999999999

-a=-1000000000000000000000000000000000000000000000

+a=1000000000000000000000000000000000000000000000

a>b   a>=b  a!=b

a+b=1999999999999999999999999999999999999999999999

a-b=1

a*b=999999999999999999999999999999999999999999999000000000000000000000000000000000000000000000

--------------------------------------------------

‚¢¥¤¥­®:

a=-100000000000000000000000000000000000000000000

b=999999999999999999999999999999999999999999999

¥§ã«ìâ â:

a=-100000000000000000000000000000000000000000000

b=999999999999999999999999999999999999999999999

-a=100000000000000000000000000000000000000000000

+a=-100000000000000000000000000000000000000000000

a<b   a<=b  a!=b

a+b=899999999999999999999999999999999999999999999

a-b=-1099999999999999999999999999999999999999999999

a*b=-99999999999999999999999999999999999999999999900000000000000000000000000000000000000000000

--------------------------------------------------

‚¢¥¤¥­®:

a=+00000000000000

b=-00000000000000

¥§ã«ìâ â:

a=0

b=0

-a=0

+a=0

a<=b   a>=b  a==b

a+b=0

a-b=0

a*b=0

--------------------------------------------------

Еще работы по программированию, базе данных