HI @d4n333, if you’re using an Extension or DataExtension you can add new properties and methods, and hook in to some methods, but you can’t override existing ones. If you want to override a method you need to sub-class instead.
Instead of overriding Nice, how about adding a DecimalNice method and do:
<?php
use SilverStripe\ORM\DataExtension;
class MyDBDecimalExtension extends DataExtension
{
public function DecimalNice()
{
return number_format($this->owner->value, 0);
}
}