aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/lib/have_mpfr.awk
blob: 90bd523b53a21dc08c0cbd9c88662bbb6922ff3b (plain)
1
2
3
4
5
6
7
8
9
# adequate_math_precision --- return true if we have enough bits
#
# Andrew Schorr, aschorr@telemetry-investments.com, Public Domain
# May 2017

function adequate_math_precision(n)
{
    return (1 != (1+(1/(2^(n-1)))))
}