为什么按照下面的运行实例的数进行输入所得的结果却不同
import java.util.Scanner;
public class FutureInvestmentValue {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter investment amount:");
double investmentAmount = input.nextDouble();
System.out.print("Enter monthly interest rare:");
double monthlyInvestmentRate = input.nextDouble();
System.out.print("Enter number of years:");
int numberOfYears = input.nextInt();
double futureInvestmentValue = investmentAmount * Math.pow((1 + monthlyInvestmentRate), numberOfYears * 12);
System.out.println("Accumulated value is:" + futureInvestmentValue);
}
}