Skip to content

Commit

Permalink
issue #46 update doc math
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyleite committed May 5, 2022
1 parent e885c0c commit a3f89d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/source/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ This function expects a binary and return its equivalent in decimal.
$ bh_bin2dec 1110
14
bh_charcalc
-----------

Think of a way to make operations with 'char', how to sum two positions for a 'char/string' and return letter c or sum of the other and multiply it by 10 and returns 10

.. note::

Usage
Expand All @@ -54,6 +56,7 @@ Think of a way to make operations with 'char', how to sum two positions for a 'c
$ bh_charcalc A \* 255
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.......
bh_dec2bin
----------

Expand Down Expand Up @@ -94,6 +97,7 @@ Opossed to ``bh_bin2dec`` this function expects a decimal for converting it into
5 = 101
6 = 110
bh_dec2hex
----------

Expand All @@ -116,6 +120,7 @@ The function expects a input a decimal number it performs the conversion to hex.
$ bh_dec2hex 255
ff
bh_hex2bin
----------

Expand All @@ -136,6 +141,7 @@ Capture all submitted arguments and convert to binary
$ bh_hex2bin 10
10000
bh_hex2dec
----------

Expand All @@ -156,6 +162,7 @@ This's a conversion function from hex digit to decimal digit
$ bh_hex2dec FF
255
bh_hexcalc
----------

Expand Down

0 comments on commit a3f89d5

Please sign in to comment.