pyrun!How do I keep more decimals?

1 次查看(过去 30 天)
slevin Lee
slevin Lee 2022-11-7
回答: Torsten 2022-11-7
>> pyrun("x1=0.24236152","x1")
ans =
0.2424
pyrun!How do I keep more decimals?

回答(1 个)

Torsten
Torsten 2022-11-7
You keep all decimals in both cases - only the output format is different.
format long
pyrun("x1=0.24236152","x1")
ans =
0.242361520000000

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by