Fix type of a constant value

The type of "val a" in dA.scala is Double.
However, the type of "1 / n_visible" is Int.
Undesirable Implicit type conversion may occur as following example.
```
scala> val a : Double = 1 / 2
a: Double = 0.0
```