NAME
    appr - approximate a value with simpler fraction

SYNOPSIS
    appr(x [,acc])

TYPES
    x		real
    acc		real

    return	real

DESCRIPTION
    Approximate x by using binary rounding to acc binary places so
    that the resulting number differs from x by no more than acc/2.
    By default, acc is epsilon().

EXAMPLE
    > print appr(1.2345678), appr(1.2345678, 0.1), appr(1.2345678, 0.01)
    ~1.23456779999999999999 1.25 1.234375

LIMITS
    acc > 0

LIBRARY
    NUMBER *qbappr(NUMBER *x, *acc)

SEE ALSO
    cfappr, cfsim
