I'm using a velocity template in my Scala app which logs to a file.
If I'm dividing by zero why do I get a unicode representation (∞
) in my templated log file and Infinity
printed on Eclipse console when debugging the below code?
val params = MMap.empty[String, Any]
params.put("percent", ((23.6 * 100.0) / 0.0))
debug(params.get("percent")).toDouble + "")