Hello,
Is there a way to change the decimals shown in a Slide that uses statistics? I just want to show two decimal and sometimes none
Hello,
Is there a way to change the decimals shown in a Slide that uses statistics? I just want to show two decimal and sometimes none
You'll probably want to specify precision in string.fromNum():
double x = 4.794368421053; return string.fromNum(x, Math.frac(x) ? 2 : 0);
This code checks for a fractional part of the number. If present, it uses 2 as the precision. If not, it uses 0.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved