[#BloombergLP-bdldfp-DecimalImpUtil-log10-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::log10
:relfileprefix: ../../../
:mrdocs:

Return the common (base&hyphen;10) logarithm of `x`&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32]
log10(xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x);
----

== Description

Return the common (base&hyphen;10) logarithm of the specified `x`&period;

Special value handling&colon; &ast; If `x` is &plus;&sol;&hyphen;0, &hyphen;infinity is returned and the value of the macro `ERANGE` is stored into `errno`&period; &ast; If `x` is 1, &plus;0 is returned&period; &ast; If `x` is negative, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`&period; &ast; If `x` is &plus;infinity, &plus;infinity is returned&period; &ast; If `x` is quiet NaN, quiet NaN is returned&period; &ast; If `x` is signaling NaN, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`&period;

== Return Value

the common (base&hyphen;10) logarithm of `x`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| input value
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
