Re: Printing an `Integer` as hex appends an 'h'

Adalid Claure <[email protected]>
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <CAAQZ-123=MM5-CstabQtWaPYEZv2HxWQvmeJRpRJSfBp0Q+uVA@mail.gmail.com>
I see it's hard coded in integer.cpp with no way to get rid of it. Guess
I'll just strip it off the string value.

On Wed, Dec 30, 2020, 21:08 Addy <[email protected]> wrote:

> If I do this:
>
> std::uint64_t x = 100;
> std::cout << std::hex << x;
>
> The output is: 64
>
> If I instead do this:
>
> CryptoPP::Integer x1 = 100;
> std::cout << std::hex << x1;
>
> The output is: 64h
>
> From where is this "h" coming and how do I get rid of it?
>
> --
> You received this message because you are subscribed to "Crypto++ Users".
> More information about Crypto++ and this group is available at
> http://www.cryptopp.com and
> http://groups.google.com/forum/#!forum/cryptopp-users.
> ---
> You received this message because you are subscribed to the Google Groups
> "Crypto++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cryptopp-users/6fc6d2ab-ead6-4e03-af75-9bd4053bc1c7n%40googlegroups.com
> <https://groups.google.com/d/msgid/cryptopp-users/6fc6d2ab-ead6-4e03-af75-9bd4053bc1c7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/CAAQZ-123%3DMM5-CstabQtWaPYEZv2HxWQvmeJRpRJSfBp0Q%2BuVA%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.