routine log10
Documentation for routine log10
assembled from the following types:
class Numeric
From Numeric
(Numeric) routine log10
multi sub log10(Numeric --> Numeric)multi method log10(Numeric: --> Numeric)
Calculates the logarithm to base 10. Returns NaN
for negative arguments and -Inf
for 0
.
class Cool
From Cool
(Cool) routine log10
Defined as:
multi sub log10(Cool(Numeric))multi method log10()
Coerces the invocant (or in the sub form, the invocant) to Numeric, and returns its Logarithm to base 10, that is, a number that approximately produces the original number when raised to the power of 10. Returns NaN
for negative arguments and -Inf
for 0
.
say log10(1001); # OUTPUT: «3.00043407747932»