s/Java/Python
Be a bit more duck-typish

Assume a decimal is a fractional imperial unit