[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Uppercase hex format?

From: Rik
Subject: Uppercase hex format?
Date: Thu, 10 Oct 2019 11:23:25 -0700


When using "format hex" the output uses lowercase letters a-f to represent
10-15.  This is fine, and compatible with Matlab.

However, in my background as an electrical engineer, I prefer to see this
as uppercase letters A-F.  Is there any interest in extending Octave to
support this?

We already have forms like "short e" and "short E" which switch the
exponent in scientific notation from lower case to upper case.

I made a rough patch which uses "format HEX" to switch to uppercase letters
and it is as simple as adding the flag std::ios::uppercase to the output
stream operator '<<' in C++.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]