diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/README.md b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/README.md new file mode 100644 index 000000000000..ce3541e4b6d7 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/README.md @@ -0,0 +1,143 @@ + + +# FLOAT32_NUM_SIGNIFICAND_BITS + +> Number of significand bits for a [single-precision floating-point number][ieee754]. + +
+ +## Usage + + + +```javascript +var FLOAT32_NUM_SIGNIFICAND_BITS = require( '@stdlib/constants/float32/num-significand-bits' ); +``` + +#### FLOAT32_NUM_SIGNIFICAND_BITS + +Number of significand bits for a [single-precision floating-point number][ieee754]. + + + +```javascript +var bool = ( FLOAT32_NUM_SIGNIFICAND_BITS === 23 ); +// returns true +``` + +
+ + + +
+ +## Examples + + + + + +```javascript +var FLOAT32_NUM_SIGNIFICAND_BITS = require( '@stdlib/constants/float32/num-significand-bits' ); + +console.log( FLOAT32_NUM_SIGNIFICAND_BITS ); +// => 23 +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/constants/float32/num_significand_bits.h" +``` + +#### STDLIB_CONSTANT_FLOAT32_NUM_SIGNIFICAND_BITS + +Number of significand bits for a [single-precision floating-point number][ieee754]. + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/repl.txt b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/repl.txt new file mode 100644 index 000000000000..78ba16fb5553 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/repl.txt @@ -0,0 +1,12 @@ + +{{alias}} + Number of significand bits for a single-precision floating- + point number. + + Examples + -------- + > {{alias}} + 23 + + See Also + -------- diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/types/index.d.ts new file mode 100644 index 000000000000..75d73f5cd5cd --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/types/index.d.ts @@ -0,0 +1,33 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Number of significand bits for a single-precision floating-point number. +* +* @example +* var bits = FLOAT32_NUM_SIGNIFICAND_BITS; +* // returns 23 +*/ +declare const FLOAT32_NUM_SIGNIFICAND_BITS: number; + + +// EXPORTS // + +export = FLOAT32_NUM_SIGNIFICAND_BITS; diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/types/test.ts b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/types/test.ts new file mode 100644 index 000000000000..b8cdac7ffc28 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/docs/types/test.ts @@ -0,0 +1,28 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import FLOAT32_NUM_SIGNIFICAND_BITS = require( './index' ); + + +// TESTS // + +// The export is a number... +{ + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + FLOAT32_NUM_SIGNIFICAND_BITS; // $ExpectType number +} diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/examples/index.js b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/examples/index.js new file mode 100644 index 000000000000..48294bae312e --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/examples/index.js @@ -0,0 +1,24 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var FLOAT32_NUM_SIGNIFICAND_BITS = require( './../lib' ); + +console.log( FLOAT32_NUM_SIGNIFICAND_BITS ); +// => 23 diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/include/stdlib/constants/float32/num_significand_bits.h b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/include/stdlib/constants/float32/num_significand_bits.h new file mode 100644 index 000000000000..6db3ad9c37b1 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/include/stdlib/constants/float32/num_significand_bits.h @@ -0,0 +1,27 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#ifndef STDLIB_CONSTANTS_FLOAT32_NUM_SIGNIFICAND_BITS_H +#define STDLIB_CONSTANTS_FLOAT32_NUM_SIGNIFICAND_BITS_H + +/** +* Number of significand bits for a single-precision floating-point number. +*/ +#define STDLIB_CONSTANT_FLOAT32_NUM_SIGNIFICAND_BITS 23 + +#endif // !STDLIB_CONSTANTS_FLOAT32_NUM_SIGNIFICAND_BITS_H diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/lib/index.js b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/lib/index.js new file mode 100644 index 000000000000..53add0202c61 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/lib/index.js @@ -0,0 +1,47 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Number of significand bits for a single-precision floating-point number. +* +* @module @stdlib/constants/float32/num-significand-bits +* @type {integer32} +* +* @example +* var FLOAT32_NUM_SIGNIFICAND_BITS = require( '@stdlib/constants/float32/num-significand-bits' ); +* // returns 23 +*/ + + +// MAIN // + +/** +* Number of significand bits for a single-precision floating-point number. +* +* @constant +* @type {integer32} +* @default 23 +*/ +var FLOAT32_NUM_SIGNIFICAND_BITS = 23|0; + + +// EXPORTS // + +module.exports = FLOAT32_NUM_SIGNIFICAND_BITS; diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/manifest.json b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/manifest.json new file mode 100644 index 000000000000..844d692f6439 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/manifest.json @@ -0,0 +1,36 @@ +{ + "options": {}, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "src": [], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [] + } + ] +} diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/package.json b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/package.json new file mode 100644 index 000000000000..3e8e7d382e16 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/package.json @@ -0,0 +1,68 @@ +{ + "name": "@stdlib/constants/float32/num-significand-bits", + "version": "0.0.0", + "description": "Number of significand bits for a single-precision floating-point number.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "doc": "./docs", + "example": "./examples", + "include": "./include", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "constant", + "const", + "mathematics", + "math", + "float", + "float32", + "64bit", + "floating-point", + "ieee754", + "significand", + "bits", + "high", + "word" + ] +} diff --git a/lib/node_modules/@stdlib/constants/float32/num-significand-bits/test/test.js b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/test/test.js new file mode 100644 index 000000000000..2b25e8d48b5e --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-significand-bits/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var FLOAT32_NUM_SIGNIFICAND_BITS = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a number', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof FLOAT32_NUM_SIGNIFICAND_BITS, 'number', 'main export is a number' ); + t.end(); +}); + +tape( 'the exported value is 23', function test( t ) { + t.equal( FLOAT32_NUM_SIGNIFICAND_BITS, 23, 'returns expected value' ); + t.end(); +});