خانه > lang > type > integer 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar id vi ko ja ru zh zh_TW eo
قبلی  بعدی  ویرایش  تغییر نام  واگرد  بازآوردن  Search  سرپرستی  
مستندات
تاریخچه
 
اخطار! این صفحه ، روز آمد (up-to-date) نمی باشد.  مشاهده نسخه انگلیسی 
Integer
DIM Var AS Integer

این نوع داده محلی یک مقدار صحیح را نمایش می دهد.مانند یک عدد علامت دار (signed) چهار بایتی

مقدار یک integer عددی صحیح بین 2147483648- و 2147483647+ می باشد. (31^2- و 1-31^2)

مقدار integer می تواند به صورت hexadecimal ، decimal و binary نوشته شود.

پیش از مقادیر Hexadecimal (مبنای شانزده) باید علامت & یا H& یا h& گذاشته شود.

پیش از مقادیر Binary (مبنای دو) باید علامت X& یا x& گذاشته شود.

hexadecimal constants with a value which would fit in 4 digits are sign expanded from bit 15 to bits 16 to 31, if no trailing & is added to the constant. Consider this when defining colors as constants : &H0000FF00 will be yellow (same as &H00FFFF00, because it will be sign expanded to &HFFFFFF00) where &H0000FF00& will be green.

constant decimal hexadecimal
&HC000 the sign will be extended -16384 FFFFC000
&#HC000& no extension of sign 49152 0000C000
&H1C000 no sign extension 114688 0001C000

همچنین مشاهده کنید

انواع داده