| |
|
|
| §47 - Wertetypen-Umwandlungsfunktionen
|
|
|
| |
|
|
|
HofK | The type bool, boolean, can true or false his can for variables with the both Values generiert go.
thereby has true The nummerische Repräsentation 1 and false The 0.
on the other hand go any nummerischen values mismatched 0 as true interprets. slight useful with while number mismatched 0 To Verify.
The spending one logischen Wertes How z.B. (i<r) | (i==r) for any variables with print yields too The numerische Repräsentation and not true or. false.
sometimes would like one but very true.
the can of course self hinbekommen, but beautiful would a §47 - Wertetypen-Umwandlungsfunktion , about bool
- or ? |
|
|
| |
|
|
|
Michael W. | True becomes (almost everywhere) not directly gewertet. In some Languages is it too -1. therefore ought to one True How everywhere simply to derive.
mismatched False is True (alike whom worth it repräsentiert). |
|
|
| XProfan X3System: Windows 8/10, XProfan X4 Programmieren, das spannendste Detektivspiel der Welt. | 11/14/15 ▲ |
|
|
|
|
ByteAttack | True=False or andersrum??? This will Yes correctly. philosophical... be I in the Matrix or is it The reality??? |
|
|
| |
|
|
|
Michael W. | integrally simply: if it mismatched False is, then then are You real. |
|
|
| XProfan X3System: Windows 8/10, XProfan X4 Programmieren, das spannendste Detektivspiel der Welt. | 11/14/15 ▲ |
|
|
|
|
ByteAttack | UPS! mismatched False
Überlesen... |
|
|
| |
|
|
|
HofK | Michael W. (14.11.15)
True becomes (almost everywhere) not directly gewertet. In some Languages is it too -1.
almost everywhere - but Infinity-Profan???
true -1 z.B. in VB Skript, is too a sinnvolle thing, because binary false 0... 000 true 1...111
see old(geb) with VB Skript [...] in the comparison To [...] |
|
|
| |
|
|
|
| In Infinity there Bools:
var a=true print a
yields true
however:
print true-a
yields not false, because the Minusoperator whom Datentyp on numerisch anhebt.
print 10==20
yields however false
very How
print true==true
true yields. |
|
|
| |
|
|
|
HofK | but:
w = (i<r) | (i==r) print w print (i<r) | (i==r) print i==i
gives z.B.: 1 1 true |
|
|
| |
|
|
|
| look time:
false false true
have [...] korrigiert. |
|
|
| |
|
|
|
HofK | there be I beautiful reingefallen, had still time my Java books take should. but reference is law!
come with | and || as well as & and && but too always confusion.
small consolation, has otherwise yet none notice or itself getraut To monieren. |
|
|
| |
|
|
|
Michael W. | there are You but neither on my own with the confusion come... |
|
|
| XProfan X3System: Windows 8/10, XProfan X4 Programmieren, das spannendste Detektivspiel der Welt. | 11/14/15 ▲ |
|
|
|