3232#include < iostream>
3333
3434/* modern.cpp.core header */
35- #include < DoubleExtras .h>
35+ #include < Double .h>
3636
3737int main () {
3838
@@ -48,108 +48,108 @@ int main() {
4848 /* equals */
4949 std::cout << " ----- Equal" << std::endl;
5050
51- result = vx::doubleEqual ( first, second );
51+ result = vx::equal ( first, second );
5252 std::cout << first << " == " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
5353
54- result = vx::doubleEqual ( second, third );
54+ result = vx::equal ( second, third );
5555 std::cout << second << " == " << third << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
5656
57- result = vx::doubleEqual ( third, fourth );
57+ result = vx::equal ( third, fourth );
5858 std::cout << third << " == " << fourth << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
5959
6060 /* less */
6161 std::cout << " ----- Less" << std::endl;
6262
63- result = vx::doubleLess ( first, second );
63+ result = vx::less ( first, second );
6464 std::cout << first << " < " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
6565
66- result = vx::doubleLess ( second, third );
66+ result = vx::less ( second, third );
6767 std::cout << second << " < " << third << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
6868
69- result = vx::doubleLess ( third, fourth );
69+ result = vx::less ( third, fourth );
7070 std::cout << third << " < " << fourth << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
7171
72- result = vx::doubleLess ( first, second, true );
72+ result = vx::less ( first, second, true );
7373 std::cout << first << " <= " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
7474
75- result = vx::doubleLess ( second, third, true );
75+ result = vx::less ( second, third, true );
7676 std::cout << second << " <= " << third << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
7777
78- result = vx::doubleLess ( third, fourth, true );
78+ result = vx::less ( third, fourth, true );
7979 std::cout << third << " <= " << fourth << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
8080
8181 /* greater */
8282 std::cout << " ----- Greater" << std::endl;
8383
84- result = vx::doubleGreater ( first, second );
84+ result = vx::greater ( first, second );
8585 std::cout << first << " > " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
8686
87- result = vx::doubleGreater ( second, third );
87+ result = vx::greater ( second, third );
8888 std::cout << second << " > " << third << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
8989
90- result = vx::doubleGreater ( third, fourth );
90+ result = vx::greater ( third, fourth );
9191 std::cout << third << " > " << fourth << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
9292
93- result = vx::doubleGreater ( first, second, true );
93+ result = vx::greater ( first, second, true );
9494 std::cout << first << " >= " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
9595
96- result = vx::doubleGreater ( second, third, true );
96+ result = vx::greater ( second, third, true );
9797 std::cout << second << " >= " << third << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
9898
99- result = vx::doubleGreater ( third, fourth, true );
99+ result = vx::greater ( third, fourth, true );
100100 std::cout << third << " >= " << fourth << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
101101
102102 /* between */
103103 std::cout << " ----- Between" << std::endl;
104104
105- result = vx::doubleBetween ( first, first, second );
105+ result = vx::between ( first, first, second );
106106 std::cout << first << " > " << first << " && " << first << " < " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
107107
108- result = vx::doubleBetween ( second, first, second );
108+ result = vx::between ( second, first, second );
109109 std::cout << second << " > " << first << " && " << second << " < " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
110110
111- result = vx::doubleBetween ( fourth, first, second );
111+ result = vx::between ( fourth, first, second );
112112 std::cout << fourth << " > " << first << " && " << fourth << " < " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
113113
114- result = vx::doubleBetween ( first, first, second, true );
114+ result = vx::between ( first, first, second, true );
115115 std::cout << first << " >= " << first << " && " << first << " <= " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
116116
117- result = vx::doubleBetween ( second, first, second, true );
117+ result = vx::between ( second, first, second, true );
118118 std::cout << second << " >= " << first << " && " << second << " <= " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
119119
120- result = vx::doubleBetween ( fourth, first, second, true );
120+ result = vx::between ( fourth, first, second, true );
121121 std::cout << fourth << " >= " << first << " && " << fourth << " <= " << second << " result: " << std::boolalpha << result << std::noboolalpha << std::endl;
122122
123123 /* round */
124124 std::cout << " ----- Round" << std::endl;
125125
126126 double rounded = 0.0 ;
127- rounded = vx::doubleRound ( first, 2 );
127+ rounded = vx::round ( first, 2 );
128128 std::cout << " round(2) " << first << " result: " << rounded << std::endl;
129129
130- rounded = vx::doubleRound ( second, 2 );
130+ rounded = vx::round ( second, 2 );
131131 std::cout << " round(2) " << second << " result: " << rounded << std::endl;
132132
133- rounded = vx::doubleRound ( third, 5 );
133+ rounded = vx::round ( third, 5 );
134134 std::cout << " round(5) " << third << " result: " << rounded << std::endl;
135135
136- rounded = vx::doubleRound ( fourth, 5 );
136+ rounded = vx::round ( fourth, 5 );
137137 std::cout << " round(5) " << fourth << " result: " << rounded << std::endl;
138138
139139 /* split */
140140 std::cout << " ----- Split" << std::endl;
141141
142142 std::pair<double , double > splited = {};
143- splited = vx::doubleSplit ( first );
143+ splited = vx::split ( first );
144144 std::cout << " split " << first << " result: " << splited.first << " " << splited.second << std::endl;
145145
146- splited = vx::doubleSplit ( second );
146+ splited = vx::split ( second );
147147 std::cout << " split " << second << " result: " << splited.first << " " << splited.second << std::endl;
148148
149- splited = vx::doubleSplit ( third );
149+ splited = vx::split ( third );
150150 std::cout << " split " << third << " result: " << splited.first << " " << splited.second << std::endl;
151151
152- splited = vx::doubleSplit ( fourth );
152+ splited = vx::split ( fourth );
153153 std::cout << " split " << fourth << " result: " << splited.first << " " << splited.second << std::endl;
154154
155155 return EXIT_SUCCESS;
0 commit comments