> For the complete documentation index, see [llms.txt](https://iexam.gitbook.io/fcc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iexam.gitbook.io/fcc/ji-chu/multiply-two-decimals-with-javascript.md).

# 139Multiply Two Decimals with JavaScript（赋值小数）

最近更新时间：2017年7月28日13:17:47

说明：

```
在 JavaScript 中，你也可以用小数进行计算，就像整数一样。

让我们把两个小数相乘，并得到它们相乘的结果（product）。

任务
改变 0.0 的数值让变量product的值等于 5.0。


product 的值应该等于 5.0.
需要使用 * 运算符
```

原始代码：

```
var product = 2.0 * 0.0;
```

调试代码：

```
var product = 2.0 * 2.5;
```
