Iphone 我如何打印结果,如0.0045
1667785316Iphone 我如何打印结果,如0.0045,iphone,audio,Iphone,Audio,1667785316 I only get this 1667785316 I only get this 1667785316 I only get this 如果 我明白了 73620479325976951480553954495833288118580890538037659129672946648270387289679212328499454487746153327047292122658672099465416333877902697851
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
表示浮点或双精度。阅读