Bug 100669 - NPER function, PayType parameter
Summary: NPER function, PayType parameter
Status: RESOLVED DUPLICATE of bug 100646
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 06:32 UTC by raal
Modified: 2016-07-06 11:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description raal 2016-06-29 06:32:40 UTC
ODF specification: 6.12.29 NPER
Summary: Compute the number of payment periods for an investment.
Syntax: NPER( Number Rate ; Number Payment ; Number Pv [ ; [ Number Fv ] [ ; Number PayType ] ] )
... PayType: the type of payment, defaults to 0. It is 0 if payments are due at the end of the period; 1 if they are due at the beginning of the period.

=NPER(0,06/52; -175; 8000; 0 ;-1)
=NPER(0,06/52; -175; 8000; 0 ;2)
  return result, should return #error. Last parameter only 0 or 1 is allowed.
Comment 1 Buovjaga 2016-07-02 19:36:37 UTC
(In reply to raal from comment #0)
> =NPER(0,06/52; -175; 8000; 0 ;-1)
> =NPER(0,06/52; -175; 8000; 0 ;2)
>   return result, should return #error. Last parameter only 0 or 1 is allowed.

Yes, did not return error.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: ef47ce2397d4ed453fe01d994d13a13f442ec3bb
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Built on July 2nd 2016
Comment 2 Eike Rathke 2016-07-04 13:52:24 UTC
Excel Fx help says it is a logical value, which we treat it as. Needs to be corrected in ODFF.

https://lists.oasis-open.org/archives/office-comment/201607/msg00001.html
Comment 3 Winfried Donkers 2016-07-06 11:12:35 UTC
Setting to duplicate as negative values of argument PayType are handled as 0 (FALSE).

*** This bug has been marked as a duplicate of bug 100646 ***