Static Double

Hey everyone i'm very very C++ illiterate in one of my classes i have to use a static double what exactly is a static double and what would i use it for. according to my project in my class i'm in right now i have to declare annualInterestrate a static double.

It's a double precision floating point number that retains its value between calls to the function. Global variables are static, too.
Static local variables are declared using the static keyword.
Topic archived. No new replies allowed.