You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
boolean()
Exemplos
float f =0.0;
boolean b =boolean(f);
println(f +" : "+ b); // Imprime "0.0 : false" int i =1;
b =boolean(i);
println(i +" : "+ b); // Imprime "1 : true"
i =3445;
b =boolean(i);
println(i +" : "+ b); // Imprime "3445 : true"
Descrição
Converte um tipo de dados primitivo, string ou *array *na sua representação booleana. O número o é convertido para false (n.t. falso) e todos os demais números como *true *(n.t. verdadeiro).