Change preference type from float to decimal

Fixes #57