The FloatLiteral object is used to add '0' to floating point literals, which end in a
dot ('.'), e.g., "12." -> "12.0".
See also
http://stackoverflow.com/questions/9655080/scala-operator-oddity
"In scala 2.9 and before, 2. is interpreted as 2.0 so the ambiguous dot denotes a float literal.
You’d explicitly call the method by using the syntax (2).+(2). The ambiguous floating point
syntax will however be deprecated in 2.10."
The
FloatLiteral
object is used to add '0' to floating point literals, which end in a dot ('.'), e.g., "12." -> "12.0".http://stackoverflow.com/questions/9655080/scala-operator-oddity "In scala 2.9 and before, 2. is interpreted as 2.0 so the ambiguous dot denotes a float literal. You’d explicitly call the method by using the syntax (2).+(2). The ambiguous floating point syntax will however be deprecated in 2.10."