Here's a question: what do you expect that
double a = 2443816867; return a;
returns?
- The literal constant on the first line
- MAX_INT
Hint: the answer is different when you write
double a = 2443816867.0;
Here's a question: what do you expect that
double a = 2443816867; return a;
returns?
Hint: the answer is different when you write
double a = 2443816867.0;
In C++, that returns 2443816867.0 as it should. In FlexScript, it is returning 2147483647.0 (MAX_INT).
I'll add a note to the dev list to look into fixing this.
7 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