I calculate total value from Globaltable, Below the picture, randnum=20.20 and total=20.20. Why it can't print "123"?Thank's.Test.fsm
Due to floating point number inaccuracy the two variables aren't actually equal. If you want to check if two numbers (of which at least one is a double that is the result of some calculation), you should check if the difference between the two is smaller than some tiny value.
11 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