Float to double in constructor