Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 我如何打印结果,如0.0045_Iphone_Audio - Fatal编程技术网

Iphone 我如何打印结果,如0.0045

Iphone 我如何打印结果,如0.0045,iphone,audio,Iphone,Audio,1667785316 I only get this 1667785316 I only get this 1667785316 I only get this 如果 我明白了 73620479325976951480553954495833288118580890538037659129672946648270387289679212328499454487746153327047292122658672099465416333877902697851

1667785316

     I only get this 
1667785316

     I only get this 
1667785316

     I only get this 
如果

我明白了 736204793259769514805539544958332881185808905380376591296729466482703872896792123284994544877461533270472921226586720994654163338779026978512060081697113376452636514975744.0000
7362047922597695148055539544958332881185808905380376591296729466482703872896792123284994544877461533270472921226586720994654163338779026978512060081697113377645263651497444.0000

您使用的是整数符号。改用浮点数

        printf("\n%.4f", kAudioSessionProperty_CurrentHardwareIOBufferDuration);

您使用的是整数符号。改用浮点数

        printf("\n%.4f", kAudioSessionProperty_CurrentHardwareIOBufferDuration);
如果您想要32位浮点数的4位小数精度。如果需要任意长度,请删除.4


如果您想要32位浮点数的4位小数精度。如果需要任意长度,请删除.4。

为什么要打印属性id而不是值? 如果要打印毫秒,请执行以下操作:

printf("\n%.4f", kAudioSessionProperty_CurrentHardwareIOBufferDuration);

为什么要打印属性id而不是值? 如果要打印毫秒,请执行以下操作:

printf("\n%.4f", kAudioSessionProperty_CurrentHardwareIOBufferDuration);

%d
表示整数,使用
%f
表示浮点或双精度。读取。

%d
表示整数,使用
%f
表示浮点或双精度。阅读