79306057

Date: 2024-12-24 16:32:08
Score: 0.5
Natty:
Report link

Looking at Kotlin generic class to math numbers.

There seems to be no way to do what you want. As the math operators have no relation to Number.

The only thing you can work with is the toDouble / toLong / .. operations. So indeed like you said the only solutions you have is typecasting it.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gijs Den Hollander