I've been trying to look at how to instantiate Ada.Text_IO.Integer_IO
and Ada.Text_IO.Modular_IO with a different base as default (base 8
for a project I'm playing with while learning).
So far, the only thing I can find is instantiate with a different
integer (or mod number), but the base is always defined as 10.
I'd like to output numbers for the project in base 8 (octal) in
keeping with the documentation on how the digital system works.
Does anyone have an idea on how to instantiate Integer_IO (or
Modular_IO) with Default_Base := 8 ?
I was going to add before your reply that I'm trying to get output without the extra padding of showing the base.
I was going to add before your reply that I'm trying to get output without the extra padding of showing the base.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:52:43 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,858,055 |