Functions and assignments will try to cast to the correct type, so Sin(someFloat) will work despite Sin requiring a double
Sin(someFloat)
Sin
If you want to explicitly cast you can do so like this: Sin((Double)someFloat) See ExpressionParserZero.Operands.OperandTypearrow-up-right for details.
Sin((Double)someFloat)
ExpressionParserZero.Operands.OperandType
Last updated 1 year ago