@stdlib/constants-float32-ln-two
v0.1.1
Published
Natural logarithm of 2 as a single-precision floating-point number.
Downloads
504
Readme
FLOAT32_LN2
Natural logarithm of
2as a single-precision floating-point number.
Installation
npm install @stdlib/constants-float32-ln-twoUsage
var FLOAT32_LN2 = require( '@stdlib/constants-float32-ln-two' );FLOAT32_LN2
Natural logarithm of 2 as a single-precision floating-point number.
var bool = ( FLOAT32_LN2 === 0.6931471824645996 );
// returns trueExamples
var FLOAT32_LN2 = require( '@stdlib/constants-float32-ln-two' );
console.log( FLOAT32_LN2 );
// => 0.6931471824645996C APIs
Usage
#include "stdlib/constants/float32/ln_two.h"STDLIB_CONSTANT_FLOAT32_LN2
Macro for the natural logarithm of 2 as a single-precision floating-point number.
See Also
@stdlib/constants-float32/ln-ten: natural logarithm of10as a single-precision floating-point number.@stdlib/constants-float64/ln-two: natural logarithm of 2.
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
