User Guide: DSim Data Types

Modified on Thu, 11 Jul at 11:43 AM

User Guide: DSim Data Types

Representation of Reals

1800-2012 specifies that real and shortreal are the same as C language double and float respectively. In a footnote, it "clarifies" that these types are represented using IEEE-754. These statements are potentially contradictory, as there is computer hardware for which C compilers exist, but does not support IEEE-754.

Fortunately, all of the platforms on which DSim exists or is contemplated do support IEEE-754 in hardware, and have the C ABI specify that IEEE-754 is indeed used.

chandle Data Type

The internal representation of a chandle is equivalent to a raw (void) pointer on all platforms.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article