3 ms·
> Booleans are ordinal values and usually false is less than true. I was surprised to find this is true, http://plato.stanford.edu/entries/truth-values/#3 htt
by tantalor 14y ago
> Booleans are ordinal values and usually false is less than true.
I was surprised to find this is true,
http://plato.stanford.edu/entries/truth-values/#3 http://plato.stanford.edu/entries/truth-values/#3
- jonsen 14y agoSo in fact you believed it was false before true then ;-)
- ibotty 14y agowell i believed that they are not ordered. (which they are not in some languages)
- tantalor 14y agoThat's what I thought, but it appears truth values are typically defined with a partial ordering a <= b iff a && b == a, which gives false <= false < true <= true. You could choose to ignore that partial ordering at your own peril.
- cpeterso 14y agoIn Visual Basic, False is 0 and True is -1.
- ubernostrum 14y agoIn Python, bool is a subclass of int. The constants True and False have the values 1 and 0 respectively, and it's legal to do arithmetic with them :)