C++ (Qt)float a, b;...a = (b < 0) ? 0 : sqrt(b);
C++ (Qt)float a, b;...a = sqrt(b);if (b < 0) a = 0;
C++ (Qt)float test1 = 21234567.8901f;float test2 = nexttowardf(test1, test1 * 2);printf("%f\n", test2 - test1); printf("(test1 == test1 + 1) = %d\n", int(test1 == test1 + 1));