Round can't round the complex number, just need to round it ,how. ?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Round can't round the complex number, just need to round it ,how. ??

This is the code import cmath print(round(cmath.sqrt(12*32/5))) output: TypeError: type complex doesn't define __round__ method

6th Jan 2018, 12:10 PM
RODENT
RODENT - avatar
1 Réponse