Number system and Boolean logic