Open AmasterAmaster opened 3 months ago
Decimal is not a good type for this. It's designed specifically for monetary calculations and as such it doesn't have these mathematical functions defined - it doesn't really make much sense to compute sin or sqrt of an amount of money.
It doesn't work the way float or double do, so it's not the right datatype for these kinds of calculations.
We could look into adding some sort of higher precision types potentially as an alternative.
Is your feature request related to a problem? Please describe.
There is severely the lack of nodes that can calculate a high precision type such as a decimal type, and would be nice to have them available for nodes such as sqrt, sine, average, and many other sub-categories in the math section.
The list of sub categories in the math section that are missing this decimal support:
Entering any of the purple categories listed above do not give the option to search for it either:
Describe the solution you'd like
To have the Decimal type as a fully featured type that can be used for mathematical calculations.
Describe alternatives you've considered
My friend tried making a sqrt node specifically for it (painstakingly by hand), and they discovered it was missing everywhere (preventing them from even attempting such a feat), hence this request.
Here is what they had to do as an alternative for the sqrt of a Decimal type:
As you can see, implementing a fully featured way of doing this currently would take an astronomical amount of time, and having the supported nodes for calculating Decimal would help make this more cleaner by not doing the long way every time.
Additional Context
Some applications this is used for needs a lot more percision, such as comparing mathematical formulas against each other to test for proofs (especially in Resonite).
Requesters