Module

x/financial/src/financial.ts>pv

A Zero-dependency TypeScript/JavaScript financial library (based on numpy-financial) for Node.js, Deno and the browser
Latest
function pv
import { pv } from "https://dotland.deno.dev/x/financial@v0.1.3/src/financial.ts";

Calculates the present value of an annuity investment based on constant-amount periodic payments and a constant interest rate.

Parameters

rate: number
  • Rate of interest (per period)
nper: number
  • Number of compounding periods
pmt: number
  • Payment
optional
fv = [UNSUPPORTED]
  • Future value
optional
when = [UNSUPPORTED]
  • When payments are due

Returns

number

the present value of a payment or investment