2.1.1 • Published 9 years ago

logical-conversion v2.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

logical-conversion

Truth table implementation of given decimal number's.

Installation

$ npm install logical-conversion

Usage

Usage in node

//include the logical-conversion module
var lc = require("logical-conversion");

// AND operation -- Performs truth table Conjunction operation on given decimal numbers.
lc.AND(2, 3); // output -- 2 in decimal format.

// OR operation -- Performs truth table Disjunction operation on given decimal numbers.
lc.OR(2, 3); // output -- 3 in decimal format.

// NOT operation -- Performs truth table Negation operation on given decimal number.
lc.NOT(8); // output -- 7 in decimal format. 

// XOR -- Performs truth table Xor operation on given decimal numbers.
lc.XOR(7, 16); // output -- 23 in decimal format. 

// XNOR -- Performs truth table logical equality operation on given decimal numbers.
lc.XNOR(8, 8); // output -- 15 in decimal format. 

// Conversion -- Converts the given decimal number into perferred radix form.
lc.Conversion(15, 2); // output -- 1111  in binary format.

Usage in browser

//download and include the logical-conversion file
<script src="index.js"></script>

<script>
// AND operation -- Performs truth table Conjunction operation on given decimal numbers.
lc.AND(2, 3); // output -- 2 in decimal format.

// OR operation -- Performs truth table Disjunction operation on given decimal numbers.
lc.OR(2, 3); // output -- 3 in decimal format.

// NOT operation -- Performs truth table Negation operation on given decimal number.
lc.NOT(8); // output -- 7 in decimal format. 

// XOR -- Performs truth table Xor operation on given decimal numbers.
lc.XOR(7, 16); // output -- 23 in decimal format. 

// XNOR -- Performs truth table logical equality operation on given decimal numbers.
lc.XNOR(8, 8); // output -- 15 in decimal format. 

// Conversion -- Converts the given decimal number into perferred radix form.
lc.Conversion(15, 2); // output -- 1111  in binary format.
</script>

Test

$ git clone https://github.com/BalaKrishna-BALU/logical-conversion.git
$ cd logical-conversion
$ cd test
$ node test.js

License

MIT

2.1.1

9 years ago

1.1.2

10 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago