routine log10
Documentation for routine log10
assembled from the following types:
class Cool
From Cool
(Cool) routine log10
Defined as:
multi method log10()multi sub log10(Numeric )multi sub log10(Cool )
Coerces the invocant (or in the sub form, the argument) to Numeric (or uses it directly if it's already in that form), and returns its Logarithm in base 10, that is, a number that approximately produces the original number when 10 is raised to its power. Returns NaN
for negative arguments and -Inf
for 0
.
say log10(1001); # OUTPUT: «3.00043407747932»
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
.