128-bit complex number constructor.
real component
imaginary component
128-bit complex number
var z = new Complex128( 5.0, 3.0 );
// returns <Complex128>
Size (in bytes) of each component.
Length (in bytes) of a complex number.
Read-only property returning the imaginary component.
Read-only property returning the real component.
Serializes a complex number as a JSON object.
JSON.stringify()
implicitly calls this method when stringifying a Complex128
instance.serialized complex number
var z = new Complex128( 5.0, 3.0 );
var obj = z.toJSON();
// returns { 'type': 'Complex128', 're': 5.0, 'im': 3.0 }
Serializes a complex number as a string.
serialized complex number
var z = new Complex128( 5.0, 3.0 );
var str = z.toString();
// returns '5 + 3i'
128-bit complex number.