⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 02c04-4.php

📁 介绍PHP5的给类型函数应用
💻 PHP
字号:
<?php// Calculating Continuous Compound Interest:// a = the initial amount you are calculating from// r = the annual percentage rate// y = the number of years you wish to calculate this for:function calc_continuous_compound_interest($a, $r, $y) {	return $a * pow(M_E, $r * $y);}// Calculate the value of $5000, at 3.25% interest, compounded daily, //  for 3 years.   Answer: 5512.0572078166echo calc_continuous_compound_interest(5000, .0325, 3), '<br />';// Calculate the value of $1000, at 8.5% interest, compounded monthly,// for 6 months.   Answer: 1043.4160563737echo calc_continuous_compound_interest(1000, .085, .5);?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -