Implement an API for working with floating point values

Issue #123