Much improved Fractions

With the rewrite / redesign of ESBPCS for VCL into ESBDevLib for VCL/FMX, we have been looking at ways to better use new features.

Currently we are aiming at Delphi XE2 and above – though we may make the FMX side of things XE4 and above – and that allows us many tools that we didn’t have when much of ESBPCS was developed back in the 90’s.

For example, we have already taken advantage of the enhanced Record types (together with Generics) to add Nullable Types, and the ability to have records with Methods makes for a much better Fraction Type then just the “simple” records (with lots of routines) that we had in ESBPCS. Plus having overloaded Operators allow us to do things like:

F1.Create (1, 3); // Create a Fraction from Numerator and Denominator.
F2.Parse ('-3 / 47'); // Create a Fraction from parsing a string.
F3 := 1.234; // Create a Fraction from conversion from a Float.
F4 := F1 + F2 * F3; // Create a Fraction from Arithmetic involving other Fractions.

So we are almost finished work on TEDLFraction – which we also needed for v9 release of our ESBCalc Pro ๐Ÿ™‚

The progress towards Beta Access for registered owners of ESBPCS for VCL has taken much longer than I anticipated – and much of this is that the “visual side” of FMX is quite a bit different to the VCL side of things. We initially tried to make our VCL Edits (for example) and our FMX Edits as similar as possible – but this involved approaches that are no longer recommended in FMX Application Development, or removal of features that we ourselves desire to have in VCL Application Development. So whilst the underlying Engines will aim to be as close to “the same” as possible between VCL and FMX, we are going to follow a “simple” approach for the FMX visual components – simply inherit from the Delphi ones and add the ESBPCS features where appropriate.

So we will aim to make regular Beta updates (via manual install) available in January 2014. We ourselves are using ESBDevLib in the next generation of our Calculators and other Tools, and are aiming to have Mac versions out early in 2014 – so we will be using the FMX side of things (together withย TMS Software’s fine FMX components).

About esbglenn

Software Developer working at our Family owned business, ESB Consultancy, which is located in Kalgoorlie-Boulder, in the Eastern Goldfields of Western Australia.
This entry was posted in Beta Development, ESBPCS, Math in Delphi and tagged , , . Bookmark the permalink.

2 Responses to Much improved Fractions

  1. Doug Johnson says:

    Well done Glenn.

    I have a new address.
    I look forward to the FM compatible release. I only have XE3 at the moment. Waiting to see which way the wind blows for FMX.

    • esbglenn says:

      A fair bit of change to FM was introduced with XE4 – so I think at this stage we will continue to support FM for XE2 and above but won’t guarantee that all components or features will be available for XE2 and XE3 ๐Ÿ™‚

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.