@@ -1584,16 +1584,25 @@ interface Namespace {
1584
1584
cceilf : typeof cceilf ;
1585
1585
1586
1586
/**
1587
- * Rounds a complex number to the nearest multiple of `10^n` toward positive infinity.
1587
+ * Rounds each component of a double-precision complex number to the nearest multiple of `10^n` toward positive infinity.
1588
1588
*
1589
- * @param re - real component
1590
- * @param im - imaginary component
1589
+ * @param z - input value
1591
1590
* @param n - integer power of 10
1592
- * @returns real and imaginary components
1591
+ * @returns result
1593
1592
*
1594
1593
* @example
1595
- * var out = ns.cceiln( 5.555, -3.333, -2 );
1596
- * // returns [ 5.56, -3.33 ]
1594
+ * var Complex128 = require( `@stdlib/complex/float64` );
1595
+ * var real = require( `@stdlib/complex/real` );
1596
+ * var imag = require( `@stdlib/complex/imag` );
1597
+ *
1598
+ * var v = ns.cceiln( new Complex128( 5.555, -3.333 ), -2 );
1599
+ * // returns <Complex128>
1600
+ *
1601
+ * var re = real( v );
1602
+ * // returns 5.56
1603
+ *
1604
+ * var im = imag( v );
1605
+ * // returns -3.33
1597
1606
*/
1598
1607
cceiln : typeof cceiln ;
1599
1608
@@ -1914,16 +1923,25 @@ interface Namespace {
1914
1923
cfloor : typeof cfloor ;
1915
1924
1916
1925
/**
1917
- * Rounds a complex number to the nearest multiple of `10^n` toward negative infinity.
1926
+ * Rounds each component of a double-precision complex floating-point number to the nearest multiple of `10^n` toward negative infinity.
1918
1927
*
1919
- * @param re - real component
1920
- * @param im - imaginary component
1928
+ * @param z - input value
1921
1929
* @param n - integer power of 10
1922
- * @returns real and imaginary components
1930
+ * @returns result
1923
1931
*
1924
1932
* @example
1925
- * var out = ns.cfloorn( 5.555, -3.333, -2 );
1926
- * // returns [ 5.55, -3.34 ]
1933
+ * var Complex128 = require( `@stdlib/complex/float64` );
1934
+ * var real = require( `@stdlib/complex/real` );
1935
+ * var imag = require( `@stdlib/complex/imag` );
1936
+ *
1937
+ * var v = cfloor( new Complex128( 5.555, -3.333 ), -2 );
1938
+ * // returns <Complex128>
1939
+ *
1940
+ * var re = real( v );
1941
+ * // returns 5.55
1942
+ *
1943
+ * var im = imag( v );
1944
+ * // returns -3.34
1927
1945
*/
1928
1946
cfloorn : typeof cfloorn ;
1929
1947
@@ -3363,7 +3381,7 @@ interface Namespace {
3363
3381
floorf : typeof floorf ;
3364
3382
3365
3383
/**
3366
- * Rounds a numeric value to the nearest multiple of `10^n` toward negative infinity.
3384
+ * Rounds a double-precision floating-point number to the nearest multiple of `10^n` toward negative infinity.
3367
3385
*
3368
3386
* ## Notes
3369
3387
*
0 commit comments