Lurker News
Hi HN

It also supports percentages, dates and variables.
I've been working on this alone for a few years now, so would love to get some feedback.

Comments (239) 97 threads

Show all comments

Showing thread 13 of 97

reaktivo1 reply#
One thing that I haven't found supported in other calculators is returning the min or max between two values
layer8#
If you have abs(), you can use the following as a fallback:

min(a, b) = (a + b - abs(a − b)) / 2
max(a, b) = (a + b + abs(a − b)) / 2