/**
* @license Apache-2.0
*
* Copyright (c) 2018 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 ceiln = require( '@stdlib/math/base/special/ceiln' );


// MAIN //

/**
* Rounds a complex number to the nearest multiple of `10^n` toward positive infinity.
*
* @private
* @param {(Array|TypedArray|Object)} out - output array
* @param {number} re - real component
* @param {number} im - imaginary component
* @param {integer} n - integer power of 10
* @returns {(Array|TypedArray|Object)} output array
*
* @example
* var v = cceiln( -3.141592653589793, 3.141592653589793, -2 );
* // returns [ -3.14, 3.15 ]
*
* @example
* var out = new Array( 2 );
*
* var v = cceiln( out, 9.99999, 0.1, 0 );
* // returns [ 10.0, 1.0 ]
*
* var bool = ( v === out );
* // returns true
*
* @example
* var v = cceiln( 0.0, 0.0, -2 );
* // returns [ 0.0, 0.0 ]
*
* @example
* var v = cceiln( NaN, NaN, -2 );
* // returns [ NaN, NaN ]
*/
function cceiln( out, re, im, n ) {
	out[ 0 ] = ceiln( re, n );
	out[ 1 ] = ceiln( im, n );
	return out;
}


// EXPORTS //

module.exports = cceiln;

@@ -1053,32 +1053,60 @@
 ay%0A*%0A* @example%0A
+* var out = new Array( 2 );%0A
 * var v = cceiln
@@ -1106,16 +1106,21 @@
  cceiln(
+ out,
  -3.1415
@@ -1227,18 +1227,16 @@
 y( 2 );%0A
-*%0A
 * var v 
@@ -1304,64 +1304,44 @@
 *%0A* 
-var bool = ( v === out );%0A* // returns true%0A*%0A* @example
+@example%0A* var out = new Array( 2 );
 %0A* v
@@ -1354,16 +1354,21 @@
  cceiln(
+ out,
  0.0, 0.
@@ -1411,24 +1411,52 @@
 %0A* @example%0A
+* var out = new Array( 2 );%0A
 * var v = cc
@@ -1460,16 +1460,21 @@
  cceiln(
+ out,
  NaN, Na

Fix examples