Conceitos básicos: D

From AdonaiMedrado.Pro.Br
Revision as of 13:02, 2 April 2009 by Adonaimedrado (Talk | contribs) (New page: == Tipos básicos <ref name="dspecification">D Specification em http://www.prowiki.org/upload/duser/spec_DMD_1.00.pdf</ref> == <code lang="d"> void no type - bool = false byte (8 bits com ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Tipos básicos [1]

void no type -
bool = false
byte (8 bits com sinal) = 0
ubyte (8 bits sem sinal) = 0
short (16 bits com sinal) = 0
ushort (16 bits sem sinal) = 0
int (32 bits com sinal) = 0
uint (32 bits sem sinal) 0
long (64 bits com sinal) = 0L
ulong (64 bits sem sinal) = 0L
cent (128 bits com sinal - reservado) = 0
ucent (128 bits sem sinal - reservado) = 0
float (ponto flutuante de 32 bits) = float.nan
double (ponto flutuante de 64 bits) = double.nan
real (maior ponto flutuante implementado pelo hardware) real.nan
ifloat (float imaginário) = float.nan * 1.0i
idouble (double imaginário) = double.nan * 1.0i
ireal (real imaginário) = real.nan * 1.0i
cfloat (número complexo com dois valores float) = float.nan + float.nan *
1.0i
cdouble (número complexo com dois valores double) = double.nan +
double.nan * 1.0i
creal (número complexo com dois valores real) = real.nan + real.nan *
1.0i
char (8 bits sem sinal - UTF-8) = 0xFF
wchar (16 bits sem sinal - UTF-16) = 0xFFFF
dchar (32 bits sem sinal - UTF-32) = 0x0000FFFF
  1. D Specification em http://www.prowiki.org/upload/duser/spec_DMD_1.00.pdf