Menu

Show your working: why an online calculator should print its formula
📰

Show your working: why an online calculator should print its formula

DEV Community: javascript·Calc·1 day ago
#wIAVU17d
#devtojavascript#devto#dev#calculator#number
Reading 0:00
15s threshold

Most online calculators give you one number and nothing else. You type the area of a room and get "53 tiles". If you want to know where 53 came from, you are on your own.

We built Calc around the opposite idea: the result is only half of the answer. The other half is the working.

The formula with your numbers in it

Under every result, the page prints the formula with your values already substituted. For tiles it looks like this:

12 m² × 1.10 ÷ 0.25 m² = 52.8, round up to the next whole tile.

That one line answers the questions people actually ask. Where did the 10% go? Why 53 and not 52? Is the tile area right? Anyone can check it with a phone calculator.

Assumptions as a list, not a footnote

A calculation is only as good as its assumptions. Calc shows them as a list next to the result: the waste margin, the rounding rule, what the calculator does not account for. If a number depends on a rate or a standard, the constant has a source and the date it was checked.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.