Interactive examples
A value of 0.75 with maximum denominator 16 returns 3/4.

Approximate a decimal as a fraction with a bounded denominator.
Enter a decimal and a maximum denominator and press the button. This example runs the actual widget in your browser.
Set the heading, labels and example values, then adjust typography, colours and responsive spacing.
Enter a finite decimal value and a maximum denominator from 1 to 10,000. The widget searches denominators in that range and returns the closest candidate found using JavaScript number arithmetic.
A value of 0.75 with maximum denominator 16 returns 3/4.
Let readers explore a small manually entered example.
Provide a compact browser-based utility on a relevant page.
Start with Complementor installed and your license connected. Enable this module in the WordPress library, then configure it in Elementor.
Activate Elementor and Complementor and enable the module.
Add the widget to an Elementor page.
Set example inputs and labels.
Style the widget and publish.
Run the example and check the result.
Configure the settings available for this module to suit the page you are building.
Edit the heading, input labels and starting values, action and result labels.
Choose an optional button icon.
Adjust typography, colours, responsive spacing and alignment.
Compare the existing Elementor workflow with this Complementor module before choosing your setup.
Use a dedicated tool for complex data and deeper analysis. This widget produces a compact text result.
Complementor uses classic Elementor APIs. Atomic-native controls are not implemented. Check your theme, cache and integrations on a staging site before release.
Check these settings if the published page behaves differently from the editor.
Check the input format and documented size or range limits.
Press the action button with JavaScript enabled.
No. A denominator limit and floating-point rounding can prevent an exact representation.
The module processes it in the browser and does not itself submit or persist it.
This module is included in Complementor All Access. Choose your production website allowance; every plan includes the same available modules.
Renews at $29 USD each year.
Renews at $49 USD each year.
Renews at $99 USD each year.
Applicable taxes extra. Annual subscriptions renew automatically unless canceled in your customer account. Read the terms and 14-day technical-issue refund policy.