handle precision and scale
Merge pull request #14 from TorchlightSoftware/master

handle precision and scale