Because we use the decimal number system so much, we often prefer to have a Decade Counter instead of a Binary Counter. Using 4 J-K Flip Flops and skipping six of its possible output states, simulation of Decade Counter is carried out with components available in Simulink.
Practiline Source Code Line Counter is a powerful source code line count software for developers and project managers. Ability to count code lines, comment lines and mixed code/comment lines in single files as well as entire directories. Preset...
A function to convert decimal integer numbers, (from 0 to 255), into byte(s) format.
Another function calling the above function to convert ASCII strings into byte(s) format.
Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07)
Adds symmetric difference and cartesian product to the Counter class. I had a use case for the former and Raymond H. asked about the latter so I coded the latter from its Wikipedia description.
Really short snipped of a decimal and binary prefix calculator in Python.
Without covering the entire International System of Units (SI) range, it does fit my daily needs.
The code could be way smarter, but i wanted to keep the...
This code enable decimal base conversion according map length and a different char set.
map = ['0','1'] base 2 10 -> 1010
map = ['a','b'] base 2 10 -> baba
My original post detailing how I recreated Appled-deOaos flip-style counter is a popular one, and I get many questions about how to properly implement it. It didnd-deOaot take long before I saw some shortcomings to the original technique I used,...
Converts any Q15 value (hexadecimal or binary) to decimal integer.
y = q152dec(x , form)
Input arguments of function:
x - its hexadecimal or binary representation stored in a MATLAB string
form - dependent on...
Converts binary data of any format in a string to floating point decimal of a defined fraction size.
The "intsize" input parameter defines the size of the exponent and sets the fixed point location in the binary number. se...
The function coverts a decimal number into a two's compelement number of a given in argument number of bits.