beautypg.com

6 numeric types: long integers – Rainbow Electronics GM862-GPS User Manual

Page 82

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 82 of 100



















4.2.6 Numeric Types: Long Integers


The following operations are supported with long integers:






















x % y

-x

+x

abs(x)

int(x)

long(x)

divmod(x, y)

pow(x, y)

x ** y

x | y

x ^ y

x & y

x << n
x >> n

~x

x + y

x - y

x * y

x / y

x % y

-x

+x

abs(x)

int(x)

long(x)

divmod(x, y)

pow(x, y)

x ** y

x | y

x ^ y

x & y

x << n
x >> n

~x