C++ number implementations