without_div_sym 0.1.1

A fun program to divide between two numbers without the division sign. using some bit wise operation.
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 6.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.11 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thormighti

Contains the geneic function which takes generic type of 2 numbers and returns their resut when divided

Example

let a  = 7;
let b = 2;
   
assert_eq!(Some(3), without_div_sym::divide(a,b));

Problems

This crate doesnt accept floating point number yet. i will work on that on next versions. the example below will cause an error

let a = 15.0;
let b = 5.0;
assert_eq!(some(3.0), without_div_sym::divide(a,b)); // This wont complie, it will bring out an error