apint icon indicating copy to clipboard operation
apint copied to clipboard

Implement Display for ApInt

Open Robbepop opened this issue 7 years ago • 0 comments

To display the contents of an ApInt users currently can only use its implementation of fmt::Debug. This is unfortunate for cases where the user just requires simple printing of values instead of debug-vision into the internals of an ApInt instance.

In issue 0x0asd the traits fmt::Binary, fmt::Octal, fmt::LowerHex and fmt::UpperHex are already proposed. These are simpler to implement as they do not depend on arithmetic components of ApInt that still have no robust implementation.

However, since decimal display representation is for many users the favoured representation this has high priority and should be implemented as soon as possible.

  • [ ] Implement fmt::Display for decimal representation of an ApInt instance's value.

Blocked By

  • Arithmetic Module

Robbepop avatar Jan 04 '18 22:01 Robbepop