[gnumeric] Docs: convert VDB.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] Docs: convert VDB.
- Date: Wed, 12 Aug 2009 23:23:21 +0000 (UTC)
commit 6b23444354c0c245bfacb995a9e3ac49453a77f0
Author: Morten Welinder <terra gnome org>
Date: Wed Aug 12 19:22:39 2009 -0400
Docs: convert VDB.
plugins/fn-financial/functions.c | 29 +++++++++++------------------
1 files changed, 11 insertions(+), 18 deletions(-)
---
diff --git a/plugins/fn-financial/functions.c b/plugins/fn-financial/functions.c
index 9168e38..b3fcb68 100644
--- a/plugins/fn-financial/functions.c
+++ b/plugins/fn-financial/functions.c
@@ -3447,24 +3447,17 @@ gnumeric_mduration (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
/***************************************************************************/
static GnmFuncHelp const help_vdb[] = {
- { GNM_FUNC_HELP_OLD,
- F_("@FUNCTION=VDB\n"
- "@SYNTAX=VDB(cost,salvage,life,start_period,end_period[,factor,switch])\n"
- "@DESCRIPTION="
- "VDB calculates the depreciation of an asset for a given period "
- "or partial period using the double-declining balance method.\n"
- "\n"
- "* If @start_period < 0, VDB returns #NUM! error.\n"
- "* If @start_period > @end_period, VDB returns #NUM! error.\n"
- "* If @end_period > @life, VDB returns #NUM! error.\n"
- "* If @cost < 0, VDB returns #NUM! error.\n"
- "* If @salvage > @cost, VDB returns #NUM! error.\n"
- "* If @factor <= 0, VDB returns #NUM! error.\n"
- "\n"
- "@EXAMPLES=\n"
- "\n"
- "@SEEALSO=DB")
- },
+ { GNM_FUNC_HELP_NAME, F_("VDB:calculate depreciation of an asset")},
+ { GNM_FUNC_HELP_ARG, F_("cost:initial cost of asset")},
+ { GNM_FUNC_HELP_ARG, F_("salvage:value after depreciation")},
+ { GNM_FUNC_HELP_ARG, F_("life:number of periods")},
+ { GNM_FUNC_HELP_ARG, F_("start_period:first period to accumulate for")},
+ { GNM_FUNC_HELP_ARG, F_("end_period:last period to accumulate for")},
+ { GNM_FUNC_HELP_ARG, F_("factor:factor at which the balance declines")},
+ { GNM_FUNC_HELP_ARG, F_("no_switch:do not switch to straight-line depreciation")},
+ { GNM_FUNC_HELP_DESCRIPTION, F_("VDB calculates the depreciation of an asset for a given period range using the double-declining balance method.") },
+ { GNM_FUNC_HELP_NOTE, F_("If @{no_switch} is FALSE, the calculation switches to straight-line depreciation when depreciation is greater than the declining balance calculation.") },
+ { GNM_FUNC_HELP_SEEALSO, "DB,DDB"},
{ GNM_FUNC_HELP_END }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]