Skip to content

brian98077/decimal_binary_convert_tools

Repository files navigation

some tools that convert decimal and binary (fixed point)

author : brian98077

two_comp_to_decimal.py
convert fixed-point 2's complement number to decimal

usage :  
input total bits of number and bits for fraction  
then input 2's complement number  
*note that the input should be negative (<0)  

dec_to_two_comp.py
convert fixed-point 2's complement number to decimal

usage :  
input total bits of number and bits for fraction  
then input decimal number  
*note that the input should be negative (<0)  

fixed_point_to_dec.py
convert positive binary fixed point (<1) to decimal

dec_point_to_binary.py
convert decimal floating point (<1) to binary (16 bits fraction)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages