3.234. __nv_log10f
-
float @__nv_log10f(float %x)
Calculate the base 10 logarithm of the input argument.
Calculate the base 10 logarithm of the input argument
x.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.
- Returns
__nv_log10f( \(\pm 0\) ) returns \(-\infty\).
__nv_log10f(1) returns +0.
__nv_log10f(
x) returns NaN forx< 0.__nv_log10f( \(+\infty\) ) returns \(+\infty\).