bugGNU Octave - Bugs: bug #59201, [octave forge] (financial) month...

 
 

bug #59201: [octave forge] (financial) month function doesn't work like day or year

Submitted by:  None
Submitted on:  Tue 29 Sep 2020 07:50:53 AM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Davide Di Nunno Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  5.2.0
Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 29 Sep 2020 04:06:43 PM UTC, comment #2: 

Draft patched versions of day and month attached. Everything is now reshaped to the same shape as the input argument.

These seem to work as intended.

There are more functions like second() etc which should probably be updated with some overall consistency.

(file #49886, file #49887, file #49888)

Anonymous
Tue 29 Sep 2020 03:56:11 PM UTC, comment #1: 

This is to paraphrase what OP is reporting:

day (now + (1:800)) # gives the day of the month for the next 800 days, as a COLUMN vector
month (now + (1:800)) # gives an error internal to month
year (now + (1:800)) # gives the year for the next 800 days as a ROW vector

The error in month() is because of lines 39 and 40, where num is a column vector that is being concatenated with str in a form that only allows scalars:

  num = datevec (varargin{:})(:,2);
  str = datestr ([0 num 0 0 0 0], "mmm");

Anonymous
Tue 29 Sep 2020 07:50:53 AM UTC, original submission:  

day(1:1:788) %works
month(1:1:788) % NOT works
year(1:1:788) %works

%in the guide in marked mon ... but not exist

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #49886:  month.m added by None (2KiB - text/x-objcsrc)
file #49887:  day.m added by None (1KiB - text/x-objcsrc)
file #49888:  year.m added by None (2KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-29 None Attached File- => Added month.m, #49886
        Attached File- => Added day.m, #49887
        Attached File- => Added year.m, #49888
    2020-09-29 siko1056 Summarymonth (financial pkg) function doesn't work like day or year => [octave forge] (financial) month function doesn't work like day or year

    Back to the top


    Powered by Savane 3.5