Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Calculating Interest without using any double values

shirldivashirldiva Member Posts: 35
Just how would I go about calculating compounded interest with using
a double variable. How do I get the exponential value needed? I am horrible at math - under normal circumstances. Can anyone help?

Shirl

Comments

  • chamsterchamster Member Posts: 662
    : Just how would I go about calculating compounded interest with using
    : a double variable.

    If i understand you correctly it would be:
    [code]
    double loan = 1000;
    double interest = 1.13;
    double toPay = loan * interest;
    [/code]

    : How do I get the exponential value needed?
    If i understand you correctly it would be:
    [code]
    double before = 1500;
    double after = 1.600;
    double interest = after / before;
    [/code]

    Was it what you ment?



    Kind Regards
    Konrad
    ----------------------------
    (+46/0) 708-70 73 92
    chamster@home.se
    http://konrads.webbsida.com

  • Andre YoungAndre Young USAMember Posts: 0

    ______ | http://forcoder.org | free ebooks and video tutorials about < Assembly Visual Basic .NET Delphi PHP Visual Basic C++ Java Perl C Scratch Swift Python Ruby JavaScript Objective-C C# PL/SQL MATLAB R Go ABAP Kotlin Fortran LabVIEW Prolog Rust FoxPro Scheme Dart Awk COBOL Lisp F# Apex Julia Erlang VBScript Lua Alice Logo Bash Transact-SQL ML Scala D SAS Clojure Crystal Hack Ada /> ____

Sign In or Register to comment.