I have a number that is represented as a string. I need to multiply this number by -1.
myvalue = htmlcontent.find_next(class_='floatRight').text
print(myvalue)
myvalue = myvalue * -1
print(myvalue)
The above outputs the following:
-0.1234
The second print doesn't display anything. What am I doing wrong?