Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 15593, Rational Custom Variant

by Ray Lischner Email: Anonymous


Example custom Variant for rational numbers (fractions).
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Kylix, Version 1.0  to 1.0 290 downloads
Copyright: No significant restrictions


Size: 37,307 bytes
Updated on Mon, 26 Feb 2001 09:57:29 GMT
Originally uploaded on Sat, 10 Feb 2001 08:57:42 GMT
SHA1 Hash: E376043BEE666E529C24607DEE509AA821A1CE38
MD5 Hash: 5FB67338647A759BE3927AD8DE2C023E

    Explore the files in this upload

Description
One of the new features in Kylix is the ability to define your own custom Variant type. The Rational Custom Variant has two examples to show you how this works. Both store rational numbers (fractions), and perform all the usual arithmetic operations, including mixed-mode operations with integers and floating point numbers. One example uses a 32-bit numerator and denominator. The other is more complicated and uses Int64 for the numerator and denominator, which requires additional memory management. Both examples are included to highlight the two ways of storing data in a variant data record.

For more information, see http://www.tempest-sw.com

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03