Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morphx666/divisionbysubtractions
https://github.com/morphx666/divisionbysubtractions
division
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/morphx666/divisionbysubtractions
- Owner: morphx666
- Created: 2017-07-04T07:29:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T20:49:14.000Z (7 months ago)
- Last Synced: 2024-04-27T21:27:32.499Z (7 months ago)
- Topics: division
- Language: C#
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- 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:
![DBS](https://xfx.net/stackoverflow/dbs/dbs01.png)### 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