'In a C project, how to deal with the loss of precision of double division?

#include <stdio.h>

int main() {
    fprintf(stderr, "%lf\n", 1.0 / 16000.0);
    return 0;
}

The result obtained by the above code is: 0.000063, but its correct answer should be 0.0000625, how can I get a correct value?

c


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source