|
9457 | 9457 | ] |
9458 | 9458 | }, |
9459 | 9459 | "@stdlib/math/base/special/trunc": {}, |
9460 | | - "@stdlib/math/base/special/trunc10": {}, |
9461 | | - "@stdlib/math/base/special/trunc2": {}, |
| 9460 | + "@stdlib/math/base/special/trunc10": { |
| 9461 | + "$schema": "math/[email protected]", |
| 9462 | + "base_alias": "trunc10", |
| 9463 | + "alias": "trunc10", |
| 9464 | + "pkg_desc": "round a numeric value to the nearest power of 10 toward zero", |
| 9465 | + "desc": "rounds a numeric value to the nearest power of 10 toward zero", |
| 9466 | + "short_desc": "", |
| 9467 | + "parameters": [ |
| 9468 | + { |
| 9469 | + "name": "x", |
| 9470 | + "desc": "input value", |
| 9471 | + "type": { |
| 9472 | + "javascript": "number", |
| 9473 | + "jsdoc": "number", |
| 9474 | + "c": "double", |
| 9475 | + "dtype": "float64" |
| 9476 | + }, |
| 9477 | + "domain": [ |
| 9478 | + { |
| 9479 | + "min": "-infinity", |
| 9480 | + "max": "infinity" |
| 9481 | + } |
| 9482 | + ], |
| 9483 | + "rand": { |
| 9484 | + "prng": "random/base/uniform", |
| 9485 | + "parameters": [ |
| 9486 | + -1000, |
| 9487 | + 1000 |
| 9488 | + ] |
| 9489 | + }, |
| 9490 | + "example_values": [ |
| 9491 | + 5.6, |
| 9492 | + 49, |
| 9493 | + 0.7, |
| 9494 | + -0.9, |
| 9495 | + -42, |
| 9496 | + 88, |
| 9497 | + -3.2, |
| 9498 | + 120, |
| 9499 | + -15, |
| 9500 | + 230, |
| 9501 | + -375, |
| 9502 | + 0, |
| 9503 | + 9, |
| 9504 | + -99, |
| 9505 | + 100, |
| 9506 | + -1000, |
| 9507 | + 1500, |
| 9508 | + -2500, |
| 9509 | + 7, |
| 9510 | + -8 |
| 9511 | + ] |
| 9512 | + } |
| 9513 | + ], |
| 9514 | + "output_policy": "real_floating_point_and_generic", |
| 9515 | + "returns": { |
| 9516 | + "desc": "rounded value", |
| 9517 | + "type": { |
| 9518 | + "javascript": "number", |
| 9519 | + "jsdoc": "number", |
| 9520 | + "c": "double", |
| 9521 | + "dtype": "float64" |
| 9522 | + } |
| 9523 | + }, |
| 9524 | + "keywords": [ |
| 9525 | + "truncate", |
| 9526 | + "trunc", |
| 9527 | + "trunc10", |
| 9528 | + "round", |
| 9529 | + "floor", |
| 9530 | + "ceil", |
| 9531 | + "nearest" |
| 9532 | + ], |
| 9533 | + "extra_keywords": [ |
| 9534 | + "math.trunc" |
| 9535 | + ] |
| 9536 | + }, |
| 9537 | + "@stdlib/math/base/special/trunc2": { |
| 9538 | + "$schema": "math/[email protected]", |
| 9539 | + "base_alias": "trunc2", |
| 9540 | + "alias": "trunc2", |
| 9541 | + "pkg_desc": "round a numeric value to the nearest power of two toward zero", |
| 9542 | + "desc": "rounds a numeric value to the nearest power of two toward zero", |
| 9543 | + "short_desc": "", |
| 9544 | + "parameters": [ |
| 9545 | + { |
| 9546 | + "name": "x", |
| 9547 | + "desc": "input value", |
| 9548 | + "type": { |
| 9549 | + "javascript": "number", |
| 9550 | + "jsdoc": "number", |
| 9551 | + "c": "double", |
| 9552 | + "dtype": "float64" |
| 9553 | + }, |
| 9554 | + "domain": [ |
| 9555 | + { |
| 9556 | + "min": "-infinity", |
| 9557 | + "max": "infinity" |
| 9558 | + } |
| 9559 | + ], |
| 9560 | + "rand": { |
| 9561 | + "prng": "random/base/uniform", |
| 9562 | + "parameters": [ |
| 9563 | + -1000, |
| 9564 | + 1000 |
| 9565 | + ] |
| 9566 | + }, |
| 9567 | + "example_values": [ |
| 9568 | + 5.6, |
| 9569 | + 49, |
| 9570 | + 0.7, |
| 9571 | + -0.9, |
| 9572 | + -42, |
| 9573 | + 88, |
| 9574 | + -3.2, |
| 9575 | + 120, |
| 9576 | + -15, |
| 9577 | + 230, |
| 9578 | + -375, |
| 9579 | + 0, |
| 9580 | + 9, |
| 9581 | + -99, |
| 9582 | + 100, |
| 9583 | + -1000, |
| 9584 | + 1500, |
| 9585 | + -2500, |
| 9586 | + 7, |
| 9587 | + -8 |
| 9588 | + ] |
| 9589 | + } |
| 9590 | + ], |
| 9591 | + "output_policy": "real_floating_point_and_generic", |
| 9592 | + "returns": { |
| 9593 | + "desc": "rounded value", |
| 9594 | + "type": { |
| 9595 | + "javascript": "number", |
| 9596 | + "jsdoc": "number", |
| 9597 | + "c": "double", |
| 9598 | + "dtype": "float64" |
| 9599 | + } |
| 9600 | + }, |
| 9601 | + "keywords": [ |
| 9602 | + "truncate", |
| 9603 | + "trunc", |
| 9604 | + "trunc2", |
| 9605 | + "round", |
| 9606 | + "floor", |
| 9607 | + "ceil", |
| 9608 | + "nextpow2", |
| 9609 | + "prevpow2", |
| 9610 | + "nearest" |
| 9611 | + ], |
| 9612 | + "extra_keywords": [ |
| 9613 | + "math.trunc" |
| 9614 | + ] |
| 9615 | + }, |
9462 | 9616 | "@stdlib/math/base/special/vercosf": { |
9463 | 9617 | "$schema": "math/[email protected]", |
9464 | 9618 | "base_alias": "vercos", |
|
0 commit comments