Pet*_*one 6 variables matlab printf decimal
我不明白使用sprintf命令发生的下一件事.
>> vpa(exp(1),53)
ans =
2.7182818284590455348848081484902650117874145507812500
>> e = 2.7182818284590455348848081484902650117874145507812500
e =
2.7183
>> sprintf('%0.53f', e)
ans =
2.71828182845904550000000000000000000000000000000000000
Run Code Online (Sandbox Code Playgroud)
为什么sprintf要向我显示数字e而不是数字,我保留在第一位?