ToBaseN
Method with 2 overloads
ToBaseN(PeterO.Numbers.EDecimal,System.Int32)
Summary
if a number is A + B where A is integer and B is in [0; 1], it performs operations
for A and B separately and then concatenates
ToBaseN(PeterO.Numbers.ERational,System.Int32)
Summary
A rational in baseN , each digit of the fraction by long division of its numerator by its
denominator: exact, so that1/7 in base 7 is0.1 , where through its decimal, rounded to the
precision and the rounding multiplied up digit by digit, it ran to 119 digits and ended on a wrong one. A
repeating expansion is cut where FloatToBaseN(PeterO.Numbers.EDecimal,System.Int32) cuts it.
https://github.com/asc-community/AngouriMath/issues/2344
Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6091 pages online