I am quite new in C++ so I am not sure how to do that. But there is in Juce sinus function, and according to Juce documentation it takes and return only float values:
But I want to use double and its precision.
As I know in <math.h> library there is also sinus function that takes and return double values, and have exactly the same syntax:
But in Juce there is automatically included library with sin(float), so if I just:
Then I am not sure which sinus my code will use. But I want to be sure that all values (argument of sinus and its return) will be with double precision. How to do that?
I know that we can use standard library like that:
std::function... but I am not sure how to use math.h library. I tried
math.h::sin(double value) but it doesn’t work.