单项选择题

若有以下程序段 double x=5.16894;printf("%f\n",(int)(x*1000+0.5)/(double)1000);则程序段的输出结果是

A.5.175000
B.5.169000
C.5.170000
D.5.168000