vertical-multiplication

Crates.iovertical-multiplication
lib.rsvertical-multiplication
version0.1.0
sourcesrc
created_at2023-03-13 06:19:47.616895
updated_at2023-03-13 06:34:49.065218
descriptionVertical multiplication step by step.
homepage
repositoryhttps://github.com/oovm/digit-invariant
max_upload_size
id808611
size8,033
SasakiSaki (oovm)

documentation

https://docs.rs/vertical-multiplication

README

Vertical Multiplication Steps

Decimal Multiplication

BigInt::from(12), &BigInt::from(345), 10)
     12
 ×  345
--------
 =   60
 +  48.
 + 36..
--------
 = 4140

Hexadecimal Multiplication

BigInt::from(12), &BigInt::from(345), 16)
     c
 × 159
-------
 =  6c
 + 3c.
 + c..
-------
 = 102c

Binary Multiplication

BigInt::from(12), &BigInt::from(345), 2)
           1100
 ×    101011001
----------------
 =         1100
 +           0.
 +          0..
 +      1100...
 +     1100....
 +       0.....
 +   1100......
 +     0.......
 + 1100........
----------------
 = 1000000101100
Commit count: 4

cargo fmt