proper decimal to precision constants + edits to transpile.js

[ci skip]
This tag has no release notes.