Making my own custom numeric type

You really need to inherit from Number or Real. But you will still need to define all the method like /.

If you want the full interface without so much work, you can use:

1 Like