Hi, I’m trying to override the .to_f method in String class in order to
trunk strings with more than 10 decimals:
if self.size > 10
aux = self[0…9]
I got this error when it calls super method:
NoMethodError: super: no superclass method `to_f’ for “10.2”:String
How could I override to_f function??
Thank you very much