#include <stdio.h> #include <string.h> int main() { // Eyepoint values: 4.882000 32.967999 // Overlap values: 25.968000 32.968000 float eyepointy = 32.967999; double yoverlap = 32.968000; char VL_Value[2048]; sprintf(VL_Value, "%.3f", eyepointy - yoverlap); if (strcmp(VL_Value, "-0.000") == 0) { sprintf(VL_Value, "0.000"); } printf("%s", VL_Value); return 0; }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more