File tree Expand file tree Collapse file tree
lib/node_modules/@stdlib/math/base/special/roundnf/docs/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131*
3232* @example
3333* // Round a value to 2 decimal places:
34- * var v = roundnf( 3.1415927410125732, -2 );
35- * // returns ~3.14
36- *
37- * @example
38- * // If n = 0, `roundnf` behaves like `roundf`:
39- * var v = roundnf( 3.1415927410125732, 0 );
40- * // returns 3.0
41- *
42- * @example
43- * // Round a value to the nearest thousand:
44- * var v = roundnf( 12368.0, 3 );
45- * // returns ~12000.0
46- */
34+ * var v = roundnf( 3.1415927410125732, -2 );
35+ * // returns ~3.14
36+ *
37+ * @example
38+ * // If n = 0, `roundnf` behaves like `roundf`:
39+ * var v = roundnf( 3.1415927410125732, 0 );
40+ * // returns 3.0
41+ *
42+ * @example
43+ * // Round a value to the nearest thousand:
44+ * var v = roundnf( 12368.0, 3 );
45+ * // returns ~12000.0
46+ */
4747declare function roundnf ( x : number , n : number ) : number ;
4848
4949
You can’t perform that action at this time.
0 commit comments