Made decimal().as_float() return a double since if you actually compile and run the program it breaks on the units tests.