https://github.com/morphx666/divisionbysubtractions
https://github.com/morphx666/divisionbysubtractions
division
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/morphx666/divisionbysubtractions
- Owner: morphx666
- Created: 2017-07-04T07:29:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T20:49:14.000Z (over 1 year ago)
- Last Synced: 2025-08-30T23:50:03.748Z (about 1 month ago)
- Topics: division
- Language: C#
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DivisionBySubtractions
Simple implementation of a function to divide very large numbers with an arbitrary precision using successive subtractions.
For example, 128/8 is the same as subtracting 8 from 128, 16 times.
Here's the result of dividing 915.27 by 37768.2313358 using 32 digits of precision:
### Usage and command line arguments
**dbs** dividend divisor [precision] [r] [z]
* dividend: Any number from Double.Min to Double.Max
* divisor: Any number from Double.Min to Double.Max
* precision: A positive integer representing the number of decimal places
* r: Optional parameter to force rounding on the last digit
* z: Optional parameter to force the removal of trailing zeros