Overriding _to_string of default variants?

Say we have a float number that we wish to print to the screen. Because the number is too big so we want to print “million” instead of 1,000,000. Is there some way to override the to_string method of float so it happens automatically whenever we convert float to string?
Of course you can do it in some wrapper layer (which should be the easier way), but I’m just curious if this is feasible.

No there is not way to do that built in (at least not if you stick with GDScript).
I wouldn’t even use a wrapper for this. I would just use a global function.
I do want to point out that 1 million vs 1,000,000 are the same length.
And you will lose with amounts between the millions.

1 million
1,000,000
1.5 million 
1,500,000   
1.5M   # probably the better option
1 Like