Thank you. This is useful. It also happended to me, probably caused by some Windows updates. Kind regards.
just a small correction: my_digs_inpeval = digs
I found the root of the problem, which is pow(10.0,...); When the exponent is a negative value, it affects calculations in some sections in the source code file 'inpeval.c' (and maybe other files that do the same calculation as well). We can see from the following example. // Need to include float.h and math.h int digs = DECIMAL_DIG; int main() { int sign = -1; double mantis = 6; printf("-0.6 = %.e\n",digs,-0.6); printf("-6pow(10,0,-1) = %.e\n",digs,-6pow(10.0,-1)); printf("-6/pow(10,0,1) = %.*e\n",digs,-6/pow(10.0,1));...
I found the root of the problem, which is pow(10.0,...); When the exponent is a negative value, it affects calculations in some sections in the source code file 'inpeval.c' (and maybe other files that do the same calculation as well). We can see from the following example. // Need to include float.h and math.h int digs = DECIMAL_DIG; int main() { int sign = -1; double mantis = 6; printf("-0.6 = %.e\n",digs,-0.6); printf("-6pow(10,0,-1) = %.e\n",digs,-6pow(10.0,-1)); printf("-6/pow(10,0,1) = %.*e\n",digs,-6/pow(10.0,1));...
I found the root of the problem, which is pow(10.0,...); When the exponent is a negative value, it affects calculations in some sections in the source code file 'inpeval.c' (and maybe other files that do the same calculation as well). We can see from the following example. // Need to include float.h and math.h int digs = DECIMAL_DIG; int main() { int sign = -1; double mantis = 6; printf("-0.6 = %.e\n",digs,-0.6); printf("-6pow(10,0,-1) = %.e\n",digs,-6pow(10.0,-1)); printf("-6/pow(10,0,1) = %.*e\n",digs,-6/pow(10.0,1));...
I found the root of the problem, which is pow(10.0,...); When the exponent is a negative value, it affects calculations in some sections in the source code file 'inpeval.c' (and maybe other files that do the same calculation as well). We can see from the following example. //#include <stdio.h> (please remove //) //#include <float.h> //#include <math.h></math.h></float.h></stdio.h> int digs = DECIMAL_DIG; int main() { int sign = -1; double mantis = 6; printf("-0.6 = %.e\n",digs,-0.6); printf("-6pow(10,0,-1)...
I found the root of the problem, which is pow(10.0,...); When the exponent is a negative value, it affects calculations in some sections in the source code file 'inpeval.c' (and maybe other files that do the same calculation as well). We can see from the following example. //#include <stdio.h> (please remove //) //#include <float.h> //#include <math.h></math.h></float.h></stdio.h> int digs = DECIMAL_DIG; int main() { int sign = -1; double mantis = 6; printf("-0.6 = %.e\n",digs,-0.6); printf("-6pow(10,0,-1)...
Just to update that if I just add 0 and the end of -0.6, out1 is as expected. v_iny iny 0 -0.60 It might be something with parsing the value, I guess.