Hey guys i want to output an calculated value , as an integer in a new cell ?
Is this possible in Flexscript ?
Thanks in advance !
Hey guys i want to output an calculated value , as an integer in a new cell ?
Is this possible in Flexscript ?
Thanks in advance !
Use trunc()
Table table = Table("GlobalTable1"); table[2][1] = trunc(table[1][1] / table[1][2]);
Or you can do as Raja suggested and store the calculated value to an int. This also truncates the number.
Table table = Table("GlobalTable1"); int value = table[1][1] / table[1][2]; table[2][1] = value;
Hi,
first store the calculated value to an int variable then assign that value to a table cell.capture.png
9 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