[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63282] Make dec2base accept negative and/or f
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #63282] Make dec2base accept negative and/or fractional inputs |
Date: |
Thu, 27 Oct 2022 15:36:36 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?63282>
Summary: Make dec2base accept negative and/or fractional
inputs
Project: GNU Octave
Submitter: arungiridhar
Submitted: Thu 27 Oct 2022 03:36:34 PM EDT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: In Progress
Assigned to: arungiridhar
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 27 Oct 2022 03:36:34 PM EDT By: Arun Giridhar <arungiridhar>
This bug report is to track a WIP patch for dec2base and dec2bin. The main
aims are the following:
* Make dec2base accept negative integer inputs.
* Remove the negative input code and all other input checks from dec2bin to
reduce code duplication, especially duplicated code with subtle differences
between functions.
The reason is that Matlab's dec2bin allows negative input so we need to do so
too, but its dec2base takes only positive inputs, which requires ad hoc checks
in dec2bin instead of a single self-consistent check in dec2base that would
apply to all bases.
* Optionally, make dec2hex accommodate fractional inputs (new feature, not
essential for the above aims, but would be nice to have if it doesn't get in
the way of anything else).
This work won't be completed in time for Octave 8, so this report is to track
the activity and collect feedback so it can be ready for Octave 9.
WIP patch attached (only for dec2base so far, not for dec2bin).
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 27 Oct 2022 03:36:34 PM EDT Name: dec2base.patch Size: 7KiB By:
arungiridhar
<http://savannah.gnu.org/bugs/download.php?file_id=53915>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63282>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #63282] Make dec2base accept negative and/or fractional inputs,
Arun Giridhar <=