Casting
Last updated
Last updated
Functions and assignments will try to cast to the correct type, so Sin(someFloat)
will work despite Sin
requiring a double
If you want to explicitly cast you can do so like this: Sin((Double)someFloat)
See for details.