GNOME Bugzilla – Bug 132347
formula guru lists incorrect argument names for rate() function
Last modified: 2004-12-22 21:47:04 UTC
In a new spreadsheet, use the Insert->Function menu item. The function selector appears. Select "Finance" as the category, and select "rate" as the function. Note the description: RATE(nper,pmt,pv[,fv,type,guess]). Click "Insert". The "Formula Guru" window lists the first arguments as (rate,nper,pmt[,fv,type,guess]). From looking at gnumeric_rate() in plugins/fn-financial/functions.c, I see that the correct arguments are (nper,pmt,pv[,fv,type,guess]), and so the formula guru is being supplied with wrong information somehow.
According to the function definition we have: { "rate", "fff|fff", "rate,nper,pmt,fv,type,guess", &help_rate, gnumeric_rate, NULL, NULL, NULL, NULL, GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_PERCENT, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, unfortunately the documentation text differs from this: N_("@FUNCTION=RATE\n" "@SYNTAX=RATE(nper,pmt,pv[,fv,type,guess])\n" "@DESCRIPTION=" "RATE calculates the rate of an investment.\n" "\n" "* If @nper <= 0, RATE returns #NUM! error.\n" "* If @type != 0 and @type != 1, RATE returns #VALUE! error.\n" "\n" "@EXAMPLES=\n" "\n" "@SEEALSO=PV,FV") What are the corrrect argument names ?
fixed in cvs HEAD (nper,pmt,pv[,fv,type,guess] is correct)