libgsjj  1
Deterministic finite automata learning library
Namespaces | Functions
binary.cpp File Reference

This file implements the functions to convert a number in its decimal form to its binary form and vice-versa. More...

#include "gsjj/binary.h"
Include dependency graph for binary.cpp:

Go to the source code of this file.

Namespaces

 gsjj
 The namespace of the library.
 

Functions

std::vector< bool > gsjj::decimal_to_binary (unsigned int dec_number, unsigned int size)
 Converts a number in decimal form to binary form. More...
 
unsigned int gsjj::binary_to_decimal (const std::vector< bool > &binary_number)
 Converts a number in binary form to decimal form. More...
 

Detailed Description

This file implements the functions to convert a number in its decimal form to its binary form and vice-versa.

See binary.h

Definition in file binary.cpp.