#1572 Fixes change in behavior cause by passing resolution as an integer...

... to the scalar encoder.

Resolves #1572
do you need to specify `2.0` instead of `2` if you're casting `self.resolution` to a `float`?