flonum functions refactored.