執行 ❯
建立您
自己的
網站
×
更改方向
更改主題,深色/淺色
前往 Spaces
#include <stdio.h> #include <math.h> int main() { double x = 1260.0; int digits = floor( log10( x ) ) + 1; printf("The number %f has %d digits.", x, digits); return 0; }
數字1260.000000有4位數字。