digits(3)

LIBRARY
#include <xtend/math.h> -lxtend

SYNOPSIS

int digits(long val, unsigned base)

ARGUMENTS
val:    The number for which digits are to be counted
base:   The number base, between 2 and 36

DESCRIPTION
num_digits() computes the number of digits in val, assuming the given base.

RETURN VALUES
The number of base "base" digits in val, or -1 if base is invalid