Does js support complex numbers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Does js support complex numbers?

i just wanted to know because they are uselful in many applications, from maths perspective.

28th May 2018, 4:17 PM
scientist
scientist - avatar
4 Answers
+ 7
complex numbers are not built in to the language, but there are JS libraries such as math.js that can be used for complex numbers. mathjs.org
28th May 2018, 4:31 PM
ChaoticDawg
ChaoticDawg - avatar
+ 5
SOLO FREAK You'll have to check the docs and source for math.js and or complex.js to get your answer. http://mathjs.org/docs/datatypes/complex_numbers.html https://github.com/infusion/Complex.js/
28th May 2018, 5:46 PM
ChaoticDawg
ChaoticDawg - avatar
+ 4
ChaoticDawg Actually I am interested in how math.js processes complex numbers
28th May 2018, 5:32 PM
scientist
scientist - avatar
+ 2
i guess yes alot of stuff in js is done with numbers,cordinate,etc...
28th May 2018, 4:28 PM
Lexfuturorum
Lexfuturorum - avatar