python - How to make a custom Number class convertible to int & float? -


I have applied a number class in Python 3. Why do I need to do this

  float (min)   

works correctly? Document from:

:

  object .__complex__ (self ) Object .__Int __ (Self) object.__ long __ (self) object.__ float __ (self) Int (), long (), and float () should return the value of the appropriate type  < / Pre>  

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -