input value
integer power of 10
result
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var real = require( '@stdlib/complex/float64/real' );
var imag = require( '@stdlib/complex/float64/imag' );
var v = cceiln( new Complex128( 5.555, -3.333 ), -2 );
// returns <Complex128>
var re = real( v );
// returns 5.56
var im = imag( v );
// returns -3.33
Rounds each component of a double-precision complex number to the nearest multiple of
10^n
toward positive infinity.