Python - Immutable type example
<p>Can someone please tell me how I can use this piece of code?. I'm not sure what question it is I want to ask, I just want to define the class needed to play with it along with other commands that I can give to the interpreter.</p>

<p>This is really making my headspin, because there is no other supporting code for it and I think it might be a metaclass usage.</p>

<p>Thank you,</p>

<pre><code>class RoundFloat(float):
    def __new__(cls, val):
        return float.__new__(cls, round(val, 2))
</code></pre>
