Vocabularymath.
functionsInputsx | a positive rational number |
OutputsWord descriptionOutputs the largest integer
n such that
10^n is less than or equal to
x.
ErrorsThrows an error if
x is zero or negative.
ExamplesUSING: prettyprint math.functions sequences ;
{
5 99 100 101 100000000000000000000
100+1/2 1/100
} [ integer-log10 ] map .
{ 0 1 2 2 20 2 -2 }
Definition