2 btrunc - truncate a value to a number of binary places
9 plcs integer, defaults to zero
14 Truncate x to plcs binary places, rounding if necessary towards zero,
15 i.e. btrunc(x, plcs) is a multiple of 2^-plcs and the remainder
16 x - btrunc(x, plcs) is either zero or has the same sign as x and
17 absolute value less than 2^-plcs. Here plcs may be positive, zero or
20 Except that it is defined only for real x, btrunc(x, plcs) is equivalent
21 to bround(x, plcs, 2). btrunc(x,0) and btrunc(x) are equivalent to
25 > print btrunc(pi()), btrunc(pi(), 10)
28 > print btrunc(3.3), btrunc(3.7), btrunc(3.3, 2), btrunc(3.7, 2)
31 > print btrunc(-3.3), btrunc(-3.7), btrunc(-3.3, 2), btrunc(-3.7, 2)
34 > print btrunc(55.123, -4), btrunc(-55.123, -4)
41 NUMBER *qbtrunc(NUMBER *x, *j)
44 bround, int, round, trunc