Casting
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 ExpressionParserZero.Operands.OperandType
for details.
Last updated