(*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) {
{
PRINTOUT ("calc is a simple calculator\n\n");
PRINTOUT ("supported operators:\n");
- PRINTOUT (" + - * / % ^\n\n");
+ PRINTOUT (" + - * / %% ^\n\n");
PRINTOUT ("supported functions:\n");
PRINTOUT (" pow sqrt cos sin atan log exp\n\n");
PRINTOUT ("miscellaneous functions:\n");