d06 ex00 fini
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
# define CONVERT_H
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <iomanip> // setw()
|
||||
#include <cctype> // isdigit()
|
||||
#include <cctype> // isdigit() isprint()
|
||||
#include <limits> // numeric_limits<type>
|
||||
#include <cstdlib> // strtod()
|
||||
#include <cerrno> // errno
|
||||
@@ -22,6 +23,12 @@ bool checkDouble(std::string str);
|
||||
#define MIN_INT_1 "-2147483649"
|
||||
#define INT_MAX_LENGTH 10
|
||||
#define MAX_FLOAT_INT_PRECISION "16777216"
|
||||
#define MAX_FLOAT "340282346638528859811704183484516925440"
|
||||
#define FLOAT_MAX_LENGTH 39
|
||||
#define MAX_DOUBLE "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368"
|
||||
#define DOUBLE_MAX_LENGTH 309
|
||||
|
||||
// for tests
|
||||
#define MAX_FLOAT_INT_PREC__1 "16777215"
|
||||
#define MAX_FLOAT_INT_PREC__2 "16777214"
|
||||
#define MAX_FLOAT_INT_PREC__3 "16777213"
|
||||
@@ -32,7 +39,6 @@ bool checkDouble(std::string str);
|
||||
#define MAX_FLOAT_INT_PREC_4 "16777220"
|
||||
#define MAX_FLOAT_INT_PREC_5 "16777221"
|
||||
#define MAX_FLOAT_INT_PREC_6 "16777222"
|
||||
#define MAX_FLOAT "340282346638528859811704183484516925440"
|
||||
#define MAX_F__1 "340282346638528859811704183484516925439"
|
||||
#define MAX_F__2 "340282346638528859811704183484516925438"
|
||||
#define MAX_F__3 "340282346638528859811704183484516925437"
|
||||
@@ -43,7 +49,17 @@ bool checkDouble(std::string str);
|
||||
#define MAX_F_4 "340282346638528859811704183484516925444"
|
||||
#define MAX_F_5 "340282346638528859811704183484516925445"
|
||||
#define MAX_F_6 "340282346638528859811704183484516925446"
|
||||
#define FLOAT_MAX_LENGTH 56
|
||||
#define MIN_DOUBLE "-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368"
|
||||
#define MAX_D__1 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858367"
|
||||
#define MAX_D__2 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858366"
|
||||
#define MAX_D__3 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858365"
|
||||
#define MAX_D__4 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858364"
|
||||
#define MAX_D_1 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858369"
|
||||
#define MAX_D_2 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858370"
|
||||
#define MAX_D_3 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858371"
|
||||
#define MAX_D_4 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858372"
|
||||
#define MAX_D_5 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858373"
|
||||
#define MAX_D_6 "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858374"
|
||||
|
||||
// colors
|
||||
# define GRAY "\e[0;30m"
|
||||
|
||||
Reference in New Issue
Block a user