octave-maintainers
[Top][All Lists]
Advanced

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

Re: Uppercase hex format?


From: Andrew Janke
Subject: Re: Uppercase hex format?
Date: Thu, 10 Oct 2019 22:17:05 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0



On 10/10/19 8:01 PM, Nicholas Jankowski wrote:


On Thu, Oct 10, 2019 at 15:37 Andrew Janke <address@hidden> wrote:


On 10/10/19 3:21 PM, Michael D Godfrey wrote:
>
>
> On 10/10/19 7:23 PM, Rik wrote:
>> All,
>>
>> 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?
>>
seems like a fairly low risk expansion of capability. Is there any case someone can think of where this would cause a conflict of some kind?  Will it need to extend to any other I/o or math functions?

One risk is that some code might be setting a format and then using "evalc(...)" to capture output and using the results programmatically. (IMHO this is a terrible code pattern, but it is indeed something you can do...)

I think this is still very low risk if the uppercase behavior is activated by an Octave-specific extension to the "format hex" command that you have to explicitly request; there's no way any ported Matlab code would be doing that.

Andrew

reply via email to

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