Manuals/calci/ENFORCECOMPLEX

From ZCubes Wiki
Revision as of 15:56, 23 August 2017 by Devika (talk | contribs) (→‎Examples)
Jump to navigation Jump to search
ENFORCECOMPLEX()


Description

  • This function converts or enforces the given number to the complex number.
  • A complex number is a combination of a real and an imaginary number.
  • A number which is positive or negative, rational or irrational or decimals are called real numbers.
  • A complex number is a number is in the form , where and are real numbers and is the imaginary unit. Where .
  • So this function converts the string complex number in to the Complex Number.

Examples

  1. ENFORCECOMPLEX("2+3i") = 2+3i
  2. ENFORCECOMPLEX("9-2j") = 9-2j
  3. ENFORCECOMPLEX("8i") = 8i
  4. ENFORCECOMPLEX("65") = 65

See Also


References