AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones financieras
  • Calculating the interest rate of a loan
FinInterestRate (Example)
Calculating the interest rate of a loan
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)Ajax The following code is used to calculate the interest rate of a loan. The number of payments required to pay off the capital, the payment value and the amount of the loan are entered by the user in edit controls (EDT_NbPayments, EDT_PaymentValue, EDT_Amount).
// -- Click code on BTN_InterestRate
// Declare the variable
ResInterestRate is real
// Calculate the interest rate
ResInterestRate = FinInterestRate(EDT_NbPayments, -EDT_PaymentValue, EDT_Amount)
IF FinError() = 0 THEN
Info("The interest rate is: " + ResInterestRate)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local