We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b3bb1f commit 3135102Copy full SHA for 3135102
base/docs/basedocs.jl
@@ -1432,6 +1432,24 @@ Unsigned
1432
Bool <: Integer
1433
1434
Boolean type, containing the values `true` and `false`.
1435
+
1436
+`Bool` is a kind of number: `false` is numerically
1437
+equal to `0` and `true` is numerically equal to `1`.
1438
+Moreover, `false` acts as a multiplicative "strong zero":
1439
1440
+```jldoctest
1441
+julia> false == 0
1442
+true
1443
1444
+julia> true == 1
1445
1446
1447
+julia> 0 * NaN
1448
+NaN
1449
1450
+julia> false * NaN
1451
+0.0
1452
+```
1453
"""
1454
Bool
1455
0 commit comments