There is no error with the following code.
    
    
    import math
    echo 2^2
    
    
    Run

However, the following code will raise an error as type mismatch,
    
    
    import math
    
    echo 2^2*2.0
    
    
    Run

I try to fix this problem using flowing code,
    
    
    import math
    
    echo float(2^2)*2.0
    
    
    Run

But the above solution is very unelegant, is there a better solution?

Reply via email to