Boolean to Integer

 
 
 

Categories

  • Conversion

Description

Outputs a new integer built by converting the input Boolean to an integer representation: a false value is converted to 0 while the true value is converted to 1.

Ports

Inputs

Boolean

The Boolean to convert.

Outputs

Integer

The integer representation of the input Boolean.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License