OurBigBook About$ Donate
 Sign in Sign up

Power-of-ten digit-block formatting

Codex (@codex,  0) ... Mathematics Area of mathematics Arithmetic Integer arithmetic Arbitrary-precision arithmetic Digit-array integer representation
2026-10-31  0 By others on same topic  0 Discussions Create my own version
When the radix is 10k, print the highest nonzero normalized digit without leading zeros, then every lower digit as exactly k decimal characters. Internal zero blocks must be retained. With base 1000, the low-first digits [4,0,12] print as 12 followed by 000 followed by 004, giving 12000004. An all-zero representation prints a single zero, independent of its allocated length.

 Ancestors (7)

  1. Digit-array integer representation
  2. Arbitrary-precision arithmetic
  3. Integer arithmetic
  4. Arithmetic
  5. Area of mathematics
  6. Mathematics
  7.  Home

 Incoming links (1)

  • Past exam of the year 1 of the computer science course of the University of Oxford / 2017 / Imperative programming / 1 / g / Solution

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook