the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 22 lines 621 B view raw
1#include "stdafx.h" 2#include "BasicTypeContainers.h" 3#include <limits> 4 5 6/* 4J Jev TODO, 7 this is different to Float::MAX_VALUE, javas floats 8 seem to actually allow values of infinity which c++ does not. 9*/ 10//A constant holding the positive infinity of type float. It is equal to the value returned by Float.intBitsToFloat(0x7f800000). 11const float Float::POSITIVE_INFINITY = 0x7f800000; 12 13const float Float::MAX_VALUE = FLT_MAX; 14 15const double Double::MAX_VALUE = DBL_MAX; 16 17const double Double::MIN_NORMAL = DBL_MIN; 18 19int Integer::parseInt(wstring &str, int radix /* = 10*/) 20{ 21 return wcstol( str.c_str(), NULL, radix ); 22}