// test: echo "2 ^ 3 * 4 + 5" | calc.exe | grep -q '=> 3.7e1'
// test: echo "2 + 3 * 4 ^ 5" | calc.exe | grep -q '=> 3.074e3'
// test: echo "2 ^ 3 * 4 + cos(5/6)" | calc.exe | grep -q '=> 3.267241e1'
-// test: echo "95-6.3*15-1" | calc.exe | grep -q '=> -5.000028e-1'
-// test: echo "95 - 6.3 * 15 - 1" | calc.exe | grep -q '=> -5.000028e-1'
+// test: echo "95-6.3*15-1" | calc.exe | grep -q '=> -5e-1'
+// test: echo "95 - 6.3 * 15 - 1" | calc.exe | grep -q '=> -5e-1'
// test: echo "95-6.3+15" | calc.exe | grep -q '=> 1.037e2'
// test: echo "-cos (0) + 1" | calc.exe | grep -q '=> 0'
// test: echo "quit" | calc.exe | grep -q 'bye'
(*str == '.') || (*str == '+') || (*str == '-')) {
VERBOSE (DEBUG, PRINTOUT ("start processing value\n"));
char *pt;
- float value = strtof (str, &pt);
+ double value = strtod (str, &pt);
VERBOSE (INFO, PRINTOUT ("Value: %f\n", value));
if (str != pt) {
if (root == NULL) {