booleReturns 1.0 if input is true, and 0.0 otherwise |
![]() |
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The function returns 1.0 if the Boolean input u is true
and 0.0 in all other cases.
Functions.boole(u)
Functions.boole(true); // 1.0
Functions.boole(false); // 0.0
u |
Type: Boolean Description: Boolean input |
---|
y |
Type: Real Description: Real output |
---|
Inline = true
in v2.1.0.