diff --git a/lib/node_modules/@stdlib/math/base/special/ceil10/README.md b/lib/node_modules/@stdlib/math/base/special/ceil10/README.md index dd69299e7b4..538ba1c3541 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceil10/README.md +++ b/lib/node_modules/@stdlib/math/base/special/ceil10/README.md @@ -116,6 +116,91 @@ for ( i = 0; i < 100; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/ceil10.h" +``` + +#### stdlib_base_ceil10( x ) + +Rounds a `numeric` value to the nearest power of `10` toward positive infinity. + +```c +double y = stdlib_base_ceil10( -4.2 ); +// returns -1.0 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_ceil10( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/ceil10.h" +#include + +int main( void ) { + const double x[] = { 3.14, -3.14, 0.0, 9.0 / 0.0 }; + + double y; + int i; + for ( i = 0; i < 4; i++ ) { + y = stdlib_base_ceil10( x[ i ] ); + printf( "ceil10(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +